I'm worried


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?


You'll need spaces..

var isEven = function(number){



That's the right syntax.


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