You’ll want to avoid using the following formats:
// The hanging decimal point. let price = 5.; // The leading decimal point. let price = .5; // Octal or base 8 format. // This represents 40, not 50. let number = 050;
Add digits before and after decimal points to avoid confusion. Also, avoid using octal literals. Most developers aren’t familiar with them.