null

Try it yourself:

See also:

null: absent value marker

null represents intentional absence of a value. It is not zero, an empty string, or NaN.

Use

Use nullish() to supply a default, typeOf() to inspect data, and isNumeric() before arithmetic. NaN instead represents an invalid numeric result.

Caveat

Decide whether null means unknown, not applicable, or missing; those meanings may need different handling.

Use Null in a calculation

Enter null on a calculator line to see its built-in value, or place the name inside a longer expression. Keep any displayed unit attached when converting or combining physical quantities, and check that every other value uses a compatible dimension.

The example above is editable, so you can replace surrounding values and test the constant in your own formula. Browse all constants to compare related values and notation.

All constants