Is there or isn’t there an integer type in JavaScript?
UPDATE: with a new ES2020 standard released this answer is not entirely correct anymore, see the other answer (from @Mathias Lykkegaard Lorenzen) about BigInt details. There is only the Number data type in JS that represents numbers. Internally it is implemented as IEEE 754 double precision floating point number. What it means is that – … Read more