JavaScript : - For Loop


Hello Friends..!!

This is JavaScript Practical: - For Loop.
Script written in small letter because JavaScript Case Sensitive.

Script:-
<html>
<head>
<title>for</title>
</head>
<body>
<script type="text/javascript">
// this is a for loop.
var count;
document.write("starting loop"+"<br />");
for(count = parseInt(prompt("enter number")); count < 100; count++)
{
document.write("number"+count);
document.write("<br />");
}
document.write("end<br />");
</script>
</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