We already have questions on closures, anonymous functions and hoisting. I think those cover what you're looking to extrapolate from a candidate here. Unless I'm missing something? (ie.` var foo = function(){ }();` avoids the syntax error)