Numbers make it possible to work with integers of arbitrary length. They are rarely needed and are used in cases where you need to work with values outside the maximum safe integer value
Any number, even a decimal fraction with a lot of decimal places, is never quoted.
You can use four types of numeric literals: decimal, binary, octal, and hexadecimal. Since the last three are used quite rarely, we will omit their detailed description 🖊️, but the curious can get acquainted with them here.
Be careful when using leading zeros! This means you don't need to put zero before the decimal number.
- MDN web docs
- Integer arithmetic
Thanks goes to these wonderful people (emoji key):
🐛 🎨 🖋