Reversed for loop : For Loop : Statement JAVASCRIPT TUTORIALS


JAVASCRIPT TUTORIALS » Statement » For Loop »

 

Reversed for loop

















<html>
<head>
<title>A Simple Page</title>
<script language="JavaScript">
<!--
for (x = 10; x >= 0; x = x - 2)
{
    document.write(x);
}
//  -->
</script>
</head>
<body>

</body>
</html>







HTML code for linking to this page:

Follow Navioo On Twitter

JAVASCRIPT TUTORIALS

 Navioo Statement
» For Loop