Friday, October 18, 2013

truthy and falsey slang terms in JavaScript

This suggests that falsey has one of the following five values:

  1. undefined
  2. null
  3. NaN
  4. 0
  5. ...and an empty string like so: ""

 
 

truthy is... not falsey.

No comments:

Post a Comment