Skip to content

Commit 277cbb3

Browse files
authored
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.
1 parent d45de36 commit 277cbb3

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

1-js/02-first-steps/07-operators/article.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -145,7 +145,7 @@ An extract from the [precedence table](https://developer.mozilla.org/en/JavaScri
145145
| 3 | assignment | `=` |
146146
| ... | ... | ... |
147147

148-
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.
148+
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.
149149
150150
## Assignment
151151

0 commit comments

Comments
 (0)