ASL STEM Logo

ASL STEM

Falsey Sign Video

No video uploaded yet.

Definition

There are only two Boolean literals in JavaScript, true and false, but any other primitive can be evaluated as a Boolean value. A falsey value is interpreted as being true in a logical expression.

Source: Victoria Kirst, Jessica Miller, Marty Stepp, Web Programming: Step by Step, published by Lulu

Example

0, NaN, "" (an empty string), null, undefined