How do you convert decimal values to their hexadecimal equivalent in JavaScript?
var number = 3200; var hexString = number.toString(16);
The 16 is the radix and there are 16 values in a hexadecimal number :-)