$ ./guess_the_languageProblem Solving — predict the output
Problem Solving — predict the output · hard · #217

What is the output?

console.log(typeof class {}, typeof Symbol());
  1. class symbol
  2. function symbol
  3. object symbol
  4. function string
Classes are functions under the hood, and Symbol() returns a primitive of type symbol.
Play Problem Solving ▸