Re:The Birth and Death of JavaScript [video]
by meowface on Friday April 18, 2014 @06:36AM
(#7608691)
This is HN, there's no such thing as being pedantic. :)
Re:The Birth and Death of JavaScript [video]
by mturmon on Saturday April 19, 2014 @01:01AM
(#7612638)
Although keep in mind that excessive pedantry is frowned upon.
Re:The Birth and Death of JavaScript [video]
by Thirdegree on Saturday April 19, 2014 @12:55AM
(#7612627)
Or rather, there is but it's thoroughly welcome.
parseInt internally uses the ToInt32 abstract operation on the radix parameter. Once it has that value, it explicitly looks to see if the value is 0. If it is, it uses a radix of 10.
https://people.mozilla.org/~jorendorff/es6-draft.html#sec-pa...
Edit: I hope that doesn't come off as pedantic. My point wasn't to disagree as much as it was to just add some further explanation.