From a89de3548d809359df6402cce4608edae8ffdf44 Mon Sep 17 00:00:00 2001 From: Ilya Kantor Date: Sat, 13 Mar 2021 09:38:06 +0300 Subject: [PATCH] closes #2498 --- 1-js/02-first-steps/13-while-for/article.md | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/1-js/02-first-steps/13-while-for/article.md b/1-js/02-first-steps/13-while-for/article.md index a23531f1..56a59850 100644 --- a/1-js/02-first-steps/13-while-for/article.md +++ b/1-js/02-first-steps/13-while-for/article.md @@ -363,12 +363,14 @@ Labels do not allow us to jump into an arbitrary place in the code. For example, it is impossible to do this: ```js -break label; // doesn't jumps to the label below +break label; // jump to the label below (doesn't work) label: for (...) ``` -A call to `break/continue` is only possible from inside a loop and the label must be somewhere above the directive. +A call to `continue` is only possible from inside the loop. + +The `break` directive may be placed before code blocks too, as `label: { ... }`, but it's almost never used like that. And it also works only inside-out. ```` ## Summary