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.
0
u/[deleted] Feb 23 '13
[deleted]