JavaScript : - Do While Statement


Hello Friends..!!

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

Script:-
<html>
<head>
<title>do statement</title>
</head>
<body>
<script type="text/javascript">
//this is a do statement
var count=0;
document.write("do statement start<br />")
do
{
document.write("numbers :-  "+count+"<br />");
count++;
}
while(count<10);
document.write("do statement end");
</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

Post a Comment

Popular posts from this blog

What is Website