Last active
March 2, 2021 17:44
-
-
Save alexcrist/35ba07a76b5dc88c0593519973bfcf11 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
// String to number | |
const str = '123'; | |
const num1 = parseInt(str); | |
const num2 = Number(str); | |
// Number to string | |
const n = 123; | |
const s = n.toString(); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment