Tin mới
JavaScript: Scripting language
Web APIs: Programming interfaces
Structuring content with HTML module
Dynamic scripting with JavaScript module
In contrast to the break statement, continue does not terminate the execution of the loop entirely, but instead:
The following example shows a while loop that has a continue statement that executes when the value of i is 3. Thus, n takes on the values 1, 3, 7, and 12.
This page was last modified on Jul 8, 2025 by MDN contributors.