Converter HEXADECIMAL para Decimal JS
yourNumber = parseInt(hexString, 16);
Parotay
yourNumber = parseInt(hexString, 16);
hexString = yourNumber.toString(16);
// Convert a number to a hexadecimal string with:
hexString = yourNumber.toString(16);
//And reverse the process with:
yourNumber = parseInt(hexString, 16);
yourNumber = parseInt(hexString, 16);
console.log(hex.toString(16));