I am just starting to learn Javascript and I immediately got confused by seemingly contradictory statements in Mozilla\'s A re-introduction to JavaScript (JS tutorial).
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 - technically there is no dedicated data type that represents integer numbers.
Practically it means that we can safely use only numbers that are safely representable by the aforementioned standard. And it includes integer values in the range: [-9007199254740991; 9007199254740991]. Both values are defined as constants: Number.MIN_SAFE_INTEGER and Number.MAX_SAFE_INTEGER correspondingly.