What does the following code evaluate to?

typeof typeof 0

Answer

It evaluates to "string".

typeof 0 evaluates to the string "number" and therefore typeof "number" evaluates to "string".

Good to hear

Last updated