Friday, October 17, 2014

Write A program to print 1 to 10 using do….while loop using Javascript .


Write A program to print 1 to 10 using do….while loop using Javascript .
Code : do-while.html

<html>
<head>
<script type="text/javascript">
var i=0;
</script>
</head>
<body>
<script type="text/javascript">
do
{
document.write(i);
document.write("<br>");
i+=1;
} while(i<10);
</script>
</body>
</html>

1 comment:

Kale Co Jakim said...

Hi, Great.. Tutorial is just awesome..It is really helpful for a newbie like me.. I am a regular follower of your blog. Really very informative post you shared here. Kindly keep blogging. If anyone wants to become a Front end developer learn from Javascript Training in Chennai . or learn thru Javascript Training in Chennai. Nowadays JavaScript has tons of job opportunities on various vertical industry. JavaScript Training in Chennai