Created
August 1, 2019 10:54
-
-
Save Neophen/d1b186fecd9ea939146a1d7812a7278c to your computer and use it in GitHub Desktop.
NaN ( not a number )
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
// NaN (not a number) | |
let name = "Mykolas"; | |
let something = name / 4; | |
console.log(typeof something); // number | |
something; // NaN | |
console.log(Number.isNaN(something)); // true | |
console.log(Number.isNaN(name)); // false |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment