What will the console.log(NaN === NaN) statement output?
a)
trueb)
falsec)
undefinedd)
NaNAnswer:
b)
falseExplanation:
In JavaScript, NaN (Not-a-Number) is a special value that represents an undefined or unrepresentable number. When comparing NaN with itself using ===, the result is false. This is because NaN is not considered equal to anything, even itself.