QuestenaՎարժանք, որը ցույց է տալիս՝ ինչ կրկնել հաջորդիվ
Հարց 105

An unlabeled continue statement targets this for loop and executes midway through its body. What happens before the next condition check?

  1. The remaining body is skipped, then the update runsՃիշտ պատասխան
  2. The loop exits immediately without another condition check
  3. The initializer runs again before the body
  4. The remaining body runs, but the update is skipped

Բացատրություն

Continue skips the remaining statements of the current body execution and transfers control to the loop's next-iteration sequence. For a normal for loop, that sequence runs the update before checking the condition again; confusing continue with break would wrongly end the loop.

Շարունակեք այս թեստով

Սկսել վարժանքը
Հարց 105: An unlabeled continue statement targets this for loop and… · JavaScript Fundamentals · Questena