Integer type in JavaScript
Does JavaScript language have an integer type?
No, JavaScript does not support a separate integer type, all numbers are floating-point values. 1.0 and 1 are the same value.
All numbers are represented as 64-bit floating point values in JavaScript. It allows represent numbers in the range +/-1.7976931348623157E+308 and exactly represent integers in the range +/-9007199254740992.