You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: 1-js/02-first-steps/12-while-for/article.md
+2-2Lines changed: 2 additions & 2 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -272,7 +272,7 @@ But as a side-effect we got one more nesting level (the `alert` call inside the
272
272
````
273
273
274
274
````warn header="No `break/continue` to the right side of '?'"
275
-
Please note that syntax constructs that are not expressions cannot be used in `'?'`. In particular, directives `break/continue` are disallowed there.
275
+
Please note that syntax constructs that are not expressions cannot be used with the ternary operator `?`. In particular, directives such as `break/continue` are disallowed there.
276
276
277
277
For example, if we take this code:
278
278
@@ -294,7 +294,7 @@ if (i > 5) {
294
294
...Then it stops working. The code like this will give a syntax error:
295
295
296
296
297
-
That's just another reason not to use a question mark operator `'?'` instead of `if`.
297
+
That's just another reason not to use a question mark operator `?` instead of `if`.
0 commit comments