What's the point of null?


#1

Question

What’s the point of null?

Answer

null is the absence of a value. We often use null in cases where the value of a variable is not yet know. When initially creating the variable we can set the value to null like so:
javascript age = null ... ... age = 18