parseInt did not consider 0 code example
Example: parseint function javascript
function convertToInterger(mystring) {
return parseInt(mystring);
}
console.log(convertToInterger("42"));
function convertToInterger(mystring) {
return parseInt(mystring);
}
console.log(convertToInterger("42"));