let number = 4579 let hexStr = number.toString(16) console.log(hexStr) // 11e3
let hexStr2 = '11e3' let number2 = parseInt(hexStr2, 16) console.log(number2) // 4579