parseInt("23") //=> 23
parseInt("023") //=> 19 (octal)
Prevent this behavior using:
parseInt("023", 10) //=> 23
parseInt("23") //=> 23
parseInt("023") //=> 19 (octal)
Prevent this behavior using:
parseInt("023", 10) //=> 23