quick-lint-js

Find bugs in JavaScript programs.

E0044: unexpected characters in number literal

Letters are allowed in number literals in certain situations, such as in 123n, 1e6, and 0xff. It is an error to include other letters or letters in the wrong spot:

let gazillion = 10000000000000000000000000N;
let pi = 3.14l;
let tau = 2pi;

To fix this error, use the correct letter or remove the extraneous letter:

let gazillion = 10000000000000000000000000n;
let pi = 3.14;

Alternatively, use the * operator to multiply a variable by a number:

let tau = 2*pi;

Documentation for other errors