minor fixes
This commit is contained in:
parent
29827e8009
commit
0c4913c367
1 changed files with 1 additions and 1 deletions
|
@ -104,7 +104,7 @@ Here's a more complex example:
|
||||||
alert(2 + 2 + '1' ); // "41" and not "221"
|
alert(2 + 2 + '1' ); // "41" and not "221"
|
||||||
```
|
```
|
||||||
|
|
||||||
Here, operators work one after another. The first `+` sums two numbers, so it returns `4`, then the next `+` adds the string `1` to it, so it's like `4 + '1' = 41`.
|
Here, operators work one after another. The first `+` sums two numbers, so it returns `4`, then the next `+` adds the string `1` to it, so it's like `4 + '1' = '41'`.
|
||||||
|
|
||||||
```js run
|
```js run
|
||||||
alert('1' + 2 + 2); // "122" and not "14"
|
alert('1' + 2 + 2); // "122" and not "14"
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue