Nasty JavaScript catch

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


comments powered by Disqus