Below is probably a little pointless, but why does the first call below work while the second fails?
var foo = function bar() {
console.log("Martini");
}
foo();
bar();
How to do this with a region?
The initial newbie’s task: defining a function “parses” - but this is really valid syntax - and is there any context that makes sense to assign a designated anonymous function?
source
share