string heaxdecimal to number js code example Example: hex string to int javascript console.log(hex.toString(16));