Differences between types of Javascript function declarations

Viewed 2421

While reading about IronJS, I can across the article here http://ironjs.wordpress.com/

In it is the following:

*Context sensitive function keyword

In case you didn’t know, these two functions are not identical:

(function bar() { })  

function foo() { } 

Finding out the difference I’ll leave as an exercise to the reader.

Can some explain the difference here?

4 Answers
Related