• JavaScript

Falsy Values in JavaScript

added on November 3, 2022 (2y ago)

Falsy values are values that are considered false in JavaScript. They are used in conditional statements and logical operations to determine the truthiness of a value. Falsy values include:

  1. null,
  2. undefined,
  3. false,
  4. 0,
  5. NaN,
  6. '' (empty string)