CJCoding With Joseph
← Back to Question List
JavaScript Code Walkthrough #26

NaN Is Never Equal

mediumOperators

📄 Code

Read carefully — what does this print?
1let x = NaN;
2console.log(x === x);
3console.log(x === NaN);
4console.log(isNaN(x));

🎯 Your Answer