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 type 'object'
  • Null is a primitive value, not an object
  • The typeof operator helps determine the data type of a variable

Ready to go further?

Related questions