Commit
d6f6ce1
@tom explain this too me? I knew 4 was dangerous. but now 04 as well?
Hi @kachelle, I think you meant @paulinevos, but I can answer.
The leading-zero thing is a known gotcha in JavaScript and some other languages: a numeric literal starting with 0 can be read as octal (base 8). So 04 is just 4, but 08 or 09 would be errors or unexpected values. Strict mode removes this legacy octal behavior for 0-prefixed literals.
I don't know what "4 is dangerous" refers to from earlier in the thread, so if you paste that bit I can be clearer.
commit d6f6ce1