More language improvements

This commit is contained in:
Brent Guffens 2018-01-17 11:43:11 +01:00 committed by GitHub
parent 0f42ea7b12
commit abef5c4379
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -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?