$ ./guess_the_languageProblem Solving — predict the output
Problem Solving — predict the output · medium · #30

What is the output?

console.log(typeof null);
  1. "null"
  2. "object"
  3. "undefined"
  4. null
A historic JS quirk: typeof null is "object".
Play Problem Solving ▸