What is the output of: console.log(typeof function(){})?

JavaScript Associate Easy

JavaScript Associate — Easy

What is the output of: console.log(typeof function(){})?

Key points

  • JavaScript considers functions as a type of object
  • The typeof operator in JavaScript returns the type of a variable or expression
  • 'function' is the specific type returned for functions

Ready to go further?

Related questions