Coming from Coffeescript im quite used to have anonymous functions assigned to variables, so im for now following the convention:
var sayName = function () {
var name = "John Doe";
console.log(name);
};
sayName();
This however triggers an error on JSLint: Unexpected 'sayName'
, am I missing something?