10 ms·
I wonder what made the original coder on javascript assume that base10 should not ALWAYS be the default unless told otherwise. At least all the different brows
by ck2 17y ago
I wonder what made the original coder on javascript assume that base10 should not ALWAYS be the default unless told otherwise.
At least all the different browsers' versions of javascript are consistent about that (right?)
- madrobby 17y agoYes, they should be consistent. Afaik. Thank science that other languages are better in that regard (here's Ruby): irb(main):002:0> "08".to_i => 8 irb(main):003:0> "08".to_i(8) => 0