Skip to content

truthy and falsy

Emily Yu edited this page Apr 4, 2018 · 1 revision

<< back to table of contents

Truthy values

  • values that are considered true when evaluated in a Boolean context
    • all values are considered truthy unless they are specifically defined as falsy

Falsy values

  • false
  • null
  • undefined
  • 0
  • NaN
  • ''
  • ""

See also

Clone this wiki locally