Skip to content

Instantly share code, notes, and snippets.

@Ynote
Created November 18, 2018 11:04
Show Gist options
  • Save Ynote/a1f11693e7134691077f5b0540b86c61 to your computer and use it in GitHub Desktop.
Save Ynote/a1f11693e7134691077f5b0540b86c61 to your computer and use it in GitHub Desktop.
Casting number into string
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