Javascript
100 Front End Interview Questions Challenge

Falsey Values

Outline

In JavaScript, any data type can be evaluated as a boolean 'true or false.' Most values will evaulate as truthy, but there are six in particular that are always falsey.

Falsey values:

  • undefined
  • null
  • NaN
  • 0
  • An empty string (no spaces): ''
  • And, of course, false
 

I finished! On to the next chapter