3 ms·Got to admit, I am disappointed that > parseInt("08", 8); returns 0 instead of NaNby user24 14y agoGot to admit, I am disappointed that > parseInt("08", 8); returns 0 instead of NaNnemetroid 14y agoReturning 0 makes perfect sense. parseInt matches an integer from the beginning of the string, so it reads the 0 and then stops at the 8 because 8 is not a valid digit in base 8. >>> parseInt("123foobar", 10) 123user24 14y agoGood point.