Skip to content

Commit a6aee0a

Browse files
authored
Merge pull request chuanxshi#150 from kingshukbasak/patch-1
parseint.html
2 parents 54625c7 + 4bc2729 commit a6aee0a

1 file changed

Lines changed: 1 addition & 0 deletions

File tree

general-patterns/parseint.html

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -14,6 +14,7 @@
1414
/* NOTE: in this example, if you omit the radix parameter like parseInt(year), the returned value will be 0,
1515
* because "09" assumes octal number (as if you did parseInt( year, 8 )) and 09 is not a valid digit in base 8.
1616
*/
17+
//if we omit the radix parameter then the returned value is not zero, it takes base 10 in chrome console.please check
1718

1819
var month = "06",
1920
year = "09";

0 commit comments

Comments
 (0)