Nasty JavaScript catch
July 08, 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 :(
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 :(