What is the output of typeof null in JavaScript?

JavaScript Associate Easy

JavaScript Associate — Easy

What is the output of typeof null in JavaScript?

Key points

  • JavaScript considers null as an object type.
  • This can lead to confusion as null is not actually an object.
  • Be aware of this behavior when working with null values in JavaScript.

Ready to go further?

Related questions