Nasty JavaScript catch

2009-07-08

JavaScript definitely has some rough edges. Consider this:

parseInt("07") // => 7
parseInt("08") // => NaN

This is a great reason for a 20 minutes long debugging session :(

comments powered by Disqus