Javascript anonymous function call [duplicate]
When the keyword function is met in a statement position (as the first token in a statement), the function declaration is expressed as a function statement. Function statements are hoisted to the top of the scope, cannot be immediately invoked and must have a name. When the keyword is met in an expression position (i.e. … Read more