JavaScript has just one number type. Unlike C++ with int, float, and double, JavaScript treats all numbers the same:
let integer = 42
let decimal = 3.14
let negative = -17
let scientific = 2.5e6 // 2,500,000
This simplicity has a tradeoff. Numbers use -bit floating point, which can cause precision issues with large integers or certain decimals like .