Beginner
JavaScript
Q20 / 100
What is NaN in JavaScript?
Correct! Well done.
Incorrect.
The correct answer is B) Not a Number — a numeric value indicating an invalid arithmetic result
B
Correct Answer
Not a Number — a numeric value indicating an invalid arithmetic result
Explanation
NaN is of type "number" but represents invalid computations like 0/0 or parseInt("abc"). Use Number.isNaN() to check (typeof does not work reliably).
Progress
20/100