Continue with condition : continue « Language Basics « JavaScript DHTML
- JavaScript DHTML
- Language Basics
- continue
Continue with condition
<html>
<head>
<title>A Simple Page</title>
<script language="JavaScript">
var x = 0;
while (x < 10)
{
x++;
if (x == 5)
{
continue;
}
alert(x);
}
</script>
</head>
<body>
</body>
</html>
Related examples in the same category