How to Check for Null in JavaScript In JavaScript, `null` is a primitive value that represents the intentional absence of any object value. It is one of the six falsy values in JavaScript, along with `undefined`, `0`, `NaN`, `””`, and `false`.
There are several ways to check for `null` in JavaScript. The most common way is to use the strict equality operator (`===`). For example: