▲ Every Possible Way to Define a Javascript Function at www.bryanbraun.com▼2 up and 0 down, posted by echojs 3674 days ago 1 comment
kolodny 3674 days ago. link 2 points ▲ ▼window.setTimeout(function(){ return alert(1 + 2); }, 500); is a function expression and not a function declaration. See http://benalman.com/news/2010/11/immediately-invoked-function-expression/ under the section "The heart of the matter"