JavaScript Continue Statement


Hello Friends..!!

This is JavaScript Practical: - Continue  Statement.
Script written in small letter because JavaScript Case Sensitive.

Script:-
<html>
<head>
<title>continue</title>
</head>
<body>
<pre>
<script type="text/javascript">
// this is a continue statement.
var x=parseInt(prompt("enter no."));
document.write("start");
while (x <= 50)
{
x = x+1;
if (x == 45)
{
continue;
}
document.write(x + "<br />");
}
document.write("end");
</script>
</pre>
</body>
</html>
Save the File .html

Output:-


If you have any doubts mention on the Comment Box.

Please follow my Blog, Share and Comment.

Comments

Popular posts from this blog

What is Website

History of Computer