Skip to content

EasyConceptJavaScript internals

What is the difference between null and undefined?

What a good answer covers

undefined means a variable has been declared but not assigned or a property is missing, while null is an explicit value meaning no value. They are loosely equal but not strictly equal.

More on JavaScript internals

Flashcards for this topic