Octal literal starts with the digit 0 and continues with a series of digits ranging from 0 to 7. Because some implementations support octal literals while others do not, you should never write an integer literal with a leading zero because you never know if it will be interpreted as an octal or decimal number. Octal literals are specifically banned in ECMA Script 5's strict mode.
In the below example, it stores a decimal integer:
let n = 075;
Floating Point Literals
A decimal point can be used in floating-point literals, and they utilise the same syntax as real numbers. The integral part of a number is followed by a decimal point and the fractional part of the number reflects a real value. Exponential notation can also be used to describe floating-point literals: a real number followed by the letter e (or E), an optional plus or minus sign, and an integer exponent. The real number multiplied by 10 to the power of the exponent is represented by this notation. The following is an example:
let qty = 10; let price = 29.30; let amount = qty * price; console.log(amount)