Quiz · Variables and types · lesson 7 of 9Quiz — null and undefinedWhat is the difference between null and undefined?[A]undefined is what JavaScript gives on its own: a variable declared without a value, a missing property, a function without return. null is never filled in by itself — code sets it on purpose to say “no value”. typeof null is "object".[B]undefined means the name does not exist at all, so reading it stops the program with an error; null means the variable exists but is empty. A variable declared without a value holds null.[C]There is no real difference: both mean “no value”, JavaScript may give either of them to a variable declared without a value, and typeof reports the same "undefined" for both, so they can be swapped freely.[D]null is what JavaScript gives on its own: a variable declared without a value, a missing property, a function without return. undefined is never filled in by itself — code sets it on purpose to mark an empty value. typeof null is "null".Subscribe to take the courseThe course is free. Sign in with Telegram and subscribe to the channel to open every lesson.Continue with TelegramSign in another way← Backnull and undefinedNext →Exercise: Fahrenheit