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).
I should mention that there is actually a type called BigInt which represents a true integer.
However, because it can't be used with Number and is generally only a good idea to use for larger numbers, I wouldn't advise it.
I thought it was worth a mention though.
var n = BigInt(1337);
console.log(typeof n); //prints "bigint"