Posted By

on 05/12/09


Tagged

null undefined


Versions (?)

Undefined vs Null in javascript


 / Published in: JavaScript
 

URL: http://weblogs.asp.net/bleroy/archive/2005/02/15/Three-common-mistakes-in-JavaScript-_2F00_-EcmaScript.aspx

  1. method | undefined | false
  2. (SomeObject.foo) false false
  3. (SomeObject.foo != null) false true
  4. (SomeObject.foo !== null) true true
  5. (SomeObject.foo != false) true false
  6. (SomeObject.foo !== false) true false

Report this snippet  

You need to login to post a comment.