Use integer variable to control the while loop : while : Statement JAVASCRIPT TUTORIALS


JAVASCRIPT TUTORIALS » Statement » while »

 

Use integer variable to control the while loop

















<html>
<head>
<title>A Simple Page</title>
<script language="JavaScript">
<!--
var x = 1
while (x < 10)
{
    ++x;
    alert(x);
}

//  -->
</script>
</head>
<body>

</body>
</html>







HTML code for linking to this page:

Follow Navioo On Twitter

JAVASCRIPT TUTORIALS

 Navioo Statement
» while