Clarification

This commit is contained in:
Brent Guffens 2018-01-18 17:03:48 +01:00 committed by GitHub
parent 3fbe7e08c2
commit d5dffa961c
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -268,7 +268,7 @@ for (let i = 0; i < 10; i++) {
From a technical point of view it's identical to the example above. Surely, we can just wrap the code in the `if` block instead of `continue`. From a technical point of view it's identical to the example above. Surely, we can just wrap the code in the `if` block instead of `continue`.
But as a side-effect we got one more figure brackets nesting level. If the code inside `if` is longer than a few lines, that may decrease the overall readability. But as a side-effect we got one more nesting level (the `alert` call inside the curly braces). If the code inside `if` is longer than a few lines, that may decrease the overall readability.
```` ````
````warn header="No `break/continue` to the right side of '?'" ````warn header="No `break/continue` to the right side of '?'"