# Falsy

*adjective*

say it: **“FAWL-see”** **/ˈfɔːlsi/**

A JavaScript value that counts as false in a condition: false, 0, "", null, undefined or NaN.

## What is **Falsy** in JavaScript?

**Falsy** — A value treated as false when JavaScript evaluates it as a condition.

```javascript
const itemCount = 0;
let cartEmpty = false;

if (!itemCount) {
    cartEmpty = true;
}
```

## In a sentence

- “An empty string is **falsy**, so if (name) skips the block when nothing was typed.”

Level: Novice · [More JavaScript terms at this level](https://www.ask-codey.com/glossary?category=javascript&level=1)

Updated: November 9, 2026

Source: https://www.ask-codey.com/glossary/falsy
