Skip to content

Instantly share code, notes, and snippets.

@CarlRevell
Last active January 1, 2016 18:19
Show Gist options
  • Save CarlRevell/8183172 to your computer and use it in GitHub Desktop.
Save CarlRevell/8183172 to your computer and use it in GitHub Desktop.
Don't forget JavaScript will return strings converted to a given base from a number...
parseInt(64).toString(); // "64"
parseInt(64).toString(10); // "64"
parseInt(64).toString(2); // "1000000"
parseInt(64).toString(8); // "100"
parseInt(64).toString(16); // "40"
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment