News for hackers. Stuff that matters.
Re:Front End Development Guidelines by zmmmmm on Thursday May 05, 2011 @08:13PM (#2519464)
Nice guide & nicely written!

This example snippet actually generates a Javascript error (at least, in IE9):

    var foo = null;
 
    // foo is null, but bar is undefined as it has not been declared
    if (foo == null && bar == null) {
        // still got in here
    }
It will work if bar is declared but has value undefined, but not if bar is completely undeclared as shown.
Re:Front End Development Guidelines by ricardobeat on Friday May 06, 2011 @07:00PM (#2522800)
common error.

  typeof bar === 'undefined'