$ ./guess_the_languageProblem Solving — predict the output
Problem Solving — predict the output · easy · #155

What is the output?

console.log(typeof function () {});
  1. function
  2. object
  3. undefined
  4. string
Functions are objects, but typeof reports them separately as 'function'.
Play Problem Solving ▸