I tried a lot of ways, but none give the expected result.
Input: 04:3d:54:a2:68:61:80
Expected output: 01193333618139520
How would I go about this in JS?
const value = `04:3d:54:a2:68:61:80`
const barcode = parseInt(value.replace(':', ''), 16)
console.log(barcode) // 1085