While loop works until the condition is true
<script type="text/javascript">
<!--
var counter = 0;
document.write("Loop Starts" + "<br />");
while (count < 5){
document.write("Counter : " + counter + "<br />");
count++;
}
document.write("Loop Ends!");
//-->
</script>
No comments:
Post a Comment