Merge pull request #2864 from leviding/patch-40

Precedence of "addition" (binary plus) is 12
This commit is contained in:
Ilya Kantor 2022-02-07 18:23:27 +03:00 committed by GitHub
commit 1e1f04fe16
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -205,7 +205,7 @@ Here's an extract from the [precedence table](https://developer.mozilla.org/en-U
| 2 | assignment | `=` |
| ... | ... | ... |
As we can see, the "unary plus" has a priority of `15` which is higher than the `13` of "addition" (binary plus). That's why, in the expression `"+apples + +oranges"`, unary pluses work before the addition.
As we can see, the "unary plus" has a priority of `15` which is higher than the `12` of "addition" (binary plus). That's why, in the expression `"+apples + +oranges"`, unary pluses work before the addition.
## Assignment