1var myNumber=120;
2var myString = myNumber.toString(); //converts number to string "120"
1// The API
2
3// To convert to a number from a hex string:
4parseInt(string, radix)
5// string: Required. The string to be parsed
6// radix: Optional. A number (from 2 to 36) that represents the numeral system to be used
7
8// To convert from a number to a hex string:
9NumberObject.toString(radix)
10// radix: Optional. Specifies the base radix you would like the number displayed as.
11
12// Example radix values:
13// 2 - The number will show as a binary value
14// 8 - The number will show as an octal value
15// 16 - The number will show as an hexadecimal value