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:
parent
d45de3608a
commit
277cbb3cbd
1 changed files with 1 additions and 1 deletions
|
@ -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
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue