What is the output of: console.log(NaN === NaN)?

JavaScript Developer Medium

JavaScript Developer — Medium

What is the output of: console.log(NaN === NaN)?

Key points

  • NaN is not equal to itself in JavaScript
  • The strict equality operator (===) checks both value and type
  • Comparing NaN with NaN will always return false

Ready to go further?

Related questions