Skip to content

Commit f90111c

Browse files
authored
More clarifications
1 parent d5dffa9 commit f90111c

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

1-js/02-first-steps/12-while-for/article.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -272,7 +272,7 @@ But as a side-effect we got one more nesting level (the `alert` call inside the
272272
````
273273
274274
````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.
276276
277277
For example, if we take this code:
278278
@@ -294,7 +294,7 @@ if (i > 5) {
294294
...Then it stops working. The code like this will give a syntax error:
295295
296296
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`.
298298
````
299299

300300
## Labels for break/continue

0 commit comments

Comments
 (0)