The typeof operator in JavaScript returns 'object' for ________.

  • null
  • undefined
  • arrays
  • functions
In JavaScript, the typeof operator returns 'object' when used with the value null. This can be a source of confusion because null is not actually an object; it's a primitive value with its own data type.
Add your answer
Loading...

Leave a comment

Your email address will not be published. Required fields are marked *