Y
Hacker News
new
|
ask
|
show
|
jobs
by
TeMPOraL
2266 days ago
In a way. The convention is that 0123 is "123" in octal.
1 comments
yread
2266 days ago
Yes, I know that's why I even tried it in console as I was a bit surprised that parseInt doesn't do octal.
Why does js even support octal? I never found octal particularly useful. Speak hexadecimal or die
link
sweeneyrod
2266 days ago
Because C does.
link
Why does js even support octal? I never found octal particularly useful. Speak hexadecimal or die