9007199254740992. As mentioned previously, their underlying type is a floating-point number (IEEE-754 standard). Take a look at the sample code below to learn how integers and declared and used.
The sample code above contains 6 variables. The first three should look familiar as they are just variables that are declared and assigned a value. The fourth and fifth variable,
The two variables
div are not assigned a specific integer, but an addition/division of two variables. This is also common as the expressions on the right are evaluated before assigning the variable an integer. Notice that
div is actually equal to "Infinity". Dividing any number by 0 will give you this result. The only exception is "0 / 0", which will return NaN (abbreviation for Not a Number).