Table of contents Home page
Execute this code
// Parsing stops when a character is encountered that cannot be interpreted as a valid part of a number // so, the part after "63" will be ignored. // "63" will be interpreted as an octal number because of the second argument having the value 8. var n = "63 (octal number)" alert(parseInt(n, 8)) // "9" cannot be interpreted as a valid octal number, so this time the method will return NaN. n = "9" alert(parseInt(n, 8))