Created
October 18, 2022 22:14
-
-
Save JWLangford/4a4864a7adf307a1092d6c0a8ba2a5f2 to your computer and use it in GitHub Desktop.
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
const numInt = "10" | |
const primitiveInt = Number(numInt) | |
// 10 | |
const numFloat = "10.51" | |
const primitiveFloat = Number(numFloat) | |
// 10.51 | |
const notANumber = "chicken" | |
const primitiveNaN = Number(notANumber) | |
// NaN |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment