Thursday, March 1, 2012

Looping Control on java script chapter 7

<html>
<body>
<script type="text/javascript">
for(i=0;i<=6;i++)
{
document.write("the number is "  + i)
document.write("</br>")
}


</script>

</body>
</html>



the result shown

the number is 0
the number is 1
the number is 2
the number is 3
the number is 4
the number is 5
the number is 6


as you see above there is a looping to call the variable "i"
it has increasing value that generate by condition "for"
you can try that.................
javascript easy right?......

No comments:

Post a Comment

Task of Study Information Technology Headline Animator

Subscribe this blog