closes #3096
This commit is contained in:
parent
c99d740c01
commit
18b1314af4
1 changed files with 1 additions and 1 deletions
|
@ -22,4 +22,4 @@ undefined + 1 = NaN // (6)
|
|||
4. The subtraction always converts to numbers, so it makes `" -9 "` a number `-9` (ignoring spaces around it).
|
||||
5. `null` becomes `0` after the numeric conversion.
|
||||
6. `undefined` becomes `NaN` after the numeric conversion.
|
||||
7. Space characters, are trimmed off string start and end when a string is converted to a number. Here the whole string consists of space characters, such as `\t`, `\n` and a "regular" space between them. So, similarly to an empty string, it becomes `0`.
|
||||
7. Space characters are trimmed off string start and end when a string is converted to a number. Here the whole string consists of space characters, such as `\t`, `\n` and a "regular" space between them. So, similarly to an empty string, it becomes `0`.
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue