# Equality and Truthy Values

JavaScript has a loose == that converts types before comparing and a strict === that doesn't, and it treats every value as truthy or falsy in a condition, so you learn which to use and where 0 and empty text trip people up.

![Cheat sheet: Equality and Truthy Values](https://fsdtrainingmedia.blob.core.windows.net/public/images/2026/10/9154cb6dfcb24b02a158eb46afa52484.webp)

- Category: JavaScript
- Level: Apprentice
- Tags: Falsy (javascript), JavaScript, Loose Equality (==) (javascript), NaN (javascript), Strict Equality (===) (javascript), Truthy (javascript), Type Coercion (javascript)
- Updated: November 1, 2026

Source: https://www.ask-codey.com/cheat-sheets/javascript-tricky-values-equality-and-truthiness-cheat-sheet
