Coding Ninjas Logo

Home > JavaScript Questions > What would following code return?

What would following code return?

console.log(typeof typeof 1);


Answer:

string

typeof 1 will return "number" and typeof "number" will return "string".

Similar Questions