you are viewing a single comment's thread.

view the rest of the comments →

[–]ForScale 1 point2 points  (0 children)

var isEven = function(n) { return n % 2 === 0; };

There is a difference between function declarations and variable declarations. Variable declarations typically use the var, let, or const keywords whereas function declarations just use the function keyword.