JavaScript

What is the output of `typeof NaN`?

Easy
5
Added
'number' - NaN is technically a numeric data type

Solution Code

JavaScript
console.log(typeof NaN); // 'number'
Explanation
NaN represents invalid numbers but is still considered a number type.

Guided Hints

Check isNaN() vs Number.isNaN()
How are NaN values created?