What is the output of `typeof []`?

JavaScript Professional Easy

JavaScript Professional — Easy

What is the output of `typeof []`?

Key points

  • Arrays in JavaScript are a type of object.
  • The `typeof` operator returns the data type of a variable.
  • 'array', 'null', and 'undefined' are not valid outputs for the `typeof` operator.

Ready to go further?

Related questions