minor fixes

This commit is contained in:
Ilya Kantor 2021-01-21 22:51:50 +03:00
parent 29827e8009
commit 0c4913c367

View file

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