When you write let x = 5, JavaScript stores it as . There's no separate integer type.
This works fine for most code, but watch out for precision:
console.log(0.1 + 0.2) // 0.30000000000000004
For financial calculations, work in cents (integers) instead of dollars (decimals). Multiply by , do math, then divide. Or use a specialized decimal library for exact precision.