Created
November 18, 2018 11:04
-
-
Save Ynote/a1f11693e7134691077f5b0540b86c61 to your computer and use it in GitHub Desktop.
Casting number into string
This file contains hidden or 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 hexaValue = 0x2a | |
// => 42 | |
String(hexaValue) | |
// => "42" | |
hexaValue.toString() | |
// => "42" |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment