Edit in line 148

Priority number of "unary plus" should be 16 according to the table. The number was typed 15, mistaken on line 148, the first line after the table.
This commit is contained in:
Negar 2017-07-10 12:15:59 +04:30 committed by GitHub
parent d45de3608a
commit 277cbb3cbd

View file

@ -145,7 +145,7 @@ An extract from the [precedence table](https://developer.mozilla.org/en/JavaScri
| 3 | assignment | `=` |
| ... | ... | ... |
As we can see, the "unary plus" has a priority of `15`, higher than `13` for the "addition" (binary plus). That's why in the expression `"+apples + +oranges"` unary pluses work first, and then the addition.
As we can see, the "unary plus" has a priority of `16`, higher than `13` for the "addition" (binary plus). That's why in the expression `"+apples + +oranges"` unary pluses work first, and then the addition.
## Assignment