News for hackers. Stuff that matters.
Re:Strangest Language Features by shadowfiend on Thursday December 15, 2011 @01:30PM (#3357296)
You can and should then pass the second radix parameter to parseInt:

    parseInt('08', 10) // => 8
This tells it explicitly that this is a base-10 number, rather than letting it guess at the base. You can also use this to decode things in base n, n <= 36.

There are no comments on this comment yet.