User Guide

parseInt() 687
The following examples show octal number parsing and return 511, which is the decimal
representation of the octal 777:
parseInt("0777")
parseInt("777", 8)
See also
NaN, parseFloat()