Typo
Typo in parseInt section.
This commit is contained in:
parent
2a0516d174
commit
0d35af5909
1 changed files with 1 additions and 1 deletions
|
@ -362,7 +362,7 @@ alert( parseFloat('12.3.4') ); // 12.3, the second point stops the reading
|
||||||
Of course, there are situations when `parseInt/parseFloat` return `NaN`. It happens when no digits could be read:
|
Of course, there are situations when `parseInt/parseFloat` return `NaN`. It happens when no digits could be read:
|
||||||
|
|
||||||
```js run
|
```js run
|
||||||
alert( parseInt('a123') ); // NaN, the first symbol stops he process
|
alert( parseInt('a123') ); // NaN, the first symbol stops the process
|
||||||
```
|
```
|
||||||
|
|
||||||
````smart header="The second argument of `parseInt(str, radix)`"
|
````smart header="The second argument of `parseInt(str, radix)`"
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue