What are Truthy and Falsy Values?

In JavaScript, every value can be treated as either true or false when used in a condition (if, while, ternary operator, etc.).

Truthy values behave like true.

Falsy values behave like false.

JavaScript automatically converts values to a boolean when evaluating conditions. This process is called Type Coercion.