Write A program to print 1 to 10 using for loop using Javascript .
Code : forloop.html
<html>
<head>
<script type="text/javascript">
var i;
</script>
</head>
<body>
<script type="text/javascript">
for(i=1;i<=10 ;i++)
{
document.write(i);
document.write("<br>");
}
</script>
</body>
</html>
No comments:
Post a Comment