More language improvements
This commit is contained in:
parent
0f42ea7b12
commit
abef5c4379
1 changed files with 2 additions and 2 deletions
|
@ -93,9 +93,9 @@ alert( +"" ); // 0
|
||||||
*/!*
|
*/!*
|
||||||
```
|
```
|
||||||
|
|
||||||
It actually does the same as `Number(...)`, but shorter.
|
It actually does the same as `Number(...)`, but is shorter.
|
||||||
|
|
||||||
A need to convert string to number arises very often. For example, if we are getting values from HTML form fields, then they are usually strings.
|
A need to convert strings to numbers arises very often. For example, if we are getting values from HTML form fields, then they are usually strings.
|
||||||
|
|
||||||
What if we want to sum them?
|
What if we want to sum them?
|
||||||
|
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue