Konubinix' opinionated web of thoughts

Number in Javascript

Fleeting

javascript

A number literal like 37 in JavaScript code is a floating-point value, not an integer. There is no separate integer type in common everyday use. (JavaScript also has a BigInt type, but it’s not designed to replace Number for everyday uses. 37 is still a number, not a BigInt.)

https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Number