4 ms·
I agree. Even within the relevant field (front-end development), explicit leading zeros are encouraged. JavaScript code quality tools such as JSHint and JSLint
by paulojreis 12y ago
I agree. Even within the relevant field (front-end development), explicit leading zeros are encouraged. JavaScript code quality tools such as JSHint and JSLint will complain when the leading zero isn't explicit. E.g:
JSHint
var foo = .1; // Unexpected '.'.
JSLint
var foo = .1; // A leading decimal point can be confused with a dot: '.1'.