Back to posts

Nasty JavaScript catch

July 8, 2009

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 :(

Programming
JavaScript