// Convert a number to a hexadecimal string with: hexString = yourNumber.toString(16); //And reverse the process with: yourNumber = parseInt(hexString, 16);
Var hex = '78'; var des = parseInt(hex,16) //gives 120 according to ascii table