JavaScript · Junior · Question 9 of 75

How does null differ from undefined?

Explanation

undefined is what uninitialized variables, missing properties and parameters, and functions without return produce. null is assigned on purpose. null == undefined is true, but null === undefined is false.

Further reading

Problem with a question

JavaScript · Junior · question 9

Test yourself

Take the JavaScript · Junior quiz: questions and options are shuffled, and you get a review of your mistakes at the end.

Take this quiz