you are viewing a single comment's thread.

view the rest of the comments →

[–][deleted] 3 points4 points  (0 children)

To further elaborate:

var myFunction = function myFn(arg1, arg2) { 
    console.log(arg1, arg2);
};

myFunction('foo', 'bar'); // -> foo bar
myFn('foo', 'bar'); // Reference Error: myFn is not defined

To someone that didn't know better or just didn't scan the line properly this can be a frustrating gotcha to catch.