+ 12
You may want to review the javascript course.
https://www.sololearn.com/learn/JavaScript/1129/?ref=app
https://www.sololearn.com/learn/JavaScript/1145/?ref=app
+ 3
It seems to me that you are trying to write in Java there replace long with var and void with function