What is the result of the expression NaN == NaN in JavaScript?
- TRUE
- FALSE
- NaN
- Throws an error
In JavaScript, NaN is not equal to itself. So, the expression NaN == NaN evaluates to false. This behavior is because NaN represents a value that is "Not-a-Number," and it's treated as unordered and not equal to any other value, including itself.
Loading...