Viewing topic: Falsey

See sub-topics for Falsey ... >> Computer Science >> Web Development >> Falsey

Highest Rated Sign

No video has been submitted for this term

Nobody has posted a sign yet.

Falsey

  • 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

  • There are no comments for this topic.