Skip to content

Instantly share code, notes, and snippets.

@scriptschat
Created September 23, 2020 13:08
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save scriptschat/176fd63a86c01dd90eae763187043b11 to your computer and use it in GitHub Desktop.
Save scriptschat/176fd63a86c01dd90eae763187043b11 to your computer and use it in GitHub Desktop.
Trying to show how NaN behaves in JavaScript
//You can directly type this in chrome console for instant output
NaN == NaN // false
NaN >= NaN // false
NaN <= NaN // false
typeof(NaN) // number (though it say, it is `not a number`)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment