Mögliche Duplizieren:
JavaScript function parseInt() doesn't parse numbers with leading 0 correctlyWie kommt parseInt ("08") = 0, parseInt ("07") = 7
merkwürdige Probleme, wenn treten in JS Parsen.
parseInt("08")
//The result is: 0
parseInt("07")
//The result is: 7
Warum passiert das?
ich dieses Problem habe havn't! – Amir
https://developer.mozilla.org/en-US/docs/JavaScript/Reference/Global_Objects/parseInt – BalusC