Null literal

Learn how to represent the lack of a value.

Null is a special literal that represents the lack of a value, often used to indicate that a variable or attribute has no value.

For example, we use null to represent the initial value of optional attributes, like the user's name, age, or email.

This is how you specify a null value: