JavaScript Tutorial/Statement/continue
Содержание
continue
The continue statement forces the execution of the code to continue at the beginning of the loop.
When a label is used, JavaScript immediately jumps to the beginning of the loop designated by a label and begins executing code.
<source lang="javascript">
<html>
<SCRIPT LANGUAGE="JavaScript"> </SCRIPT>
<html></source>
Continue a while loop
<source lang="javascript">
<html> <head> <title>A Simple Page</title> <script language="JavaScript">
</script> </head> <body> </body> </html></source>
Continue statement in a if statement
<source lang="javascript">
<html> <head> <title>A Simple Page</title> <script language="JavaScript">
</script> </head> <body> </body> </html></source>
Mod operator, if statement and continue
<source lang="javascript">
<html> <head> <title>A Simple Page</title> <script language="JavaScript">
</script> </head> <body> </body> </html></source>