Skip to content

Instantly share code, notes, and snippets.

@stevestreza
Created February 9, 2009 18:51
Show Gist options
  • Save stevestreza/60911 to your computer and use it in GitHub Desktop.
Save stevestreza/60911 to your computer and use it in GitHub Desktop.
A little bit of JavaScript typing silliness.
var myValue = Number.NaN;
console.log("Is NAN: " + isNaN(myValue)); // returns "Is NAN: true"
console.log("Type: " + typeof myValue); // returns "Type: number"
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment