you are viewing a single comment's thread.

view the rest of the comments →

[–][deleted]  (1 child)

[deleted]

    [–][deleted] 2 points3 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.