JavaScript : - While Statement
Hello Friends..!!
This is JavaScript Practical: - While Statement.
Script written in small letter because JavaScript Case
Sensitive.
Script:-
<html>
<head>
<title>while statement</title>
</head>
<body>
<script type="text/javascript">
//this is a while statement
var count=0;
document.write("whlie statement start<br
/>")
while(count<20)
{
document.write("numbers :- "+count+"<br />");
count++;
}
document.write("whlie 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