I'm worried


#1

My friend told me this is not a proper syntax that I'm learning here. For example, that this is not the way to make function:
var isEven=function(number){

}
Is he wrong?


#2

You'll need spaces..

var isEven = function(number){

}


#3

That's the right syntax.


#4


Here are the ways how to write functions, but the way it is used here is fine for it's purpose.