Daily JavaScript Quiz - 2024-04-11

  • Home /
  • Daily JavaScript Quiz - 2024-04-11

Daily Quiz - 2024-04-11

console.log(typeof typeof 1);

string

number

1

true

The answer is Option 1

The first sub-expression evaluated is typeof 1 which will return “number”. Only after that the next sub-expression is evaluated which now is typeof “number” which returns “string”.

Javascript Quizzes