Continue a while loop : continue « Statement « JavaScript Tutorial






<html>
<head>
<title>A Simple Page</title>
<script language="JavaScript">
<!--
var x = 0;
while (x < 10)
{
    x++;
    document.write(x);
    continue;
    document.write("You never see this!");
}
//  -->
</script>
</head>
<body>

</body>
</html>








3.8.continue
3.8.1.continue
3.8.2.Continue a while loop
3.8.3.Continue statement in a if statement
3.8.4.Mod operator, if statement and continue