Counting backward through a for loop : For Loop : Statement JAVASCRIPT TUTORIALS


JAVASCRIPT TUTORIALS » Statement » For Loop »

 

Counting backward through a for loop

















<html>
<head>
<title>Back Racer</title>
<script>
var i = 0;

for (i = 10; i > 0; i--){
  alert(i);
}
</script>
</head>

<body>
</body>
</html>







HTML code for linking to this page:

Follow Navioo On Twitter

JAVASCRIPT TUTORIALS

 Navioo Statement
» For Loop