Mega Code Archive

 
Categories / JavaScript Tutorial / Statement
 

Do While loop

< html> <head> <title>A Simple Page</title> <script language="JavaScript"> <!-- var x = 1 do {     ++x;     document.write(x); } while (x < 10); //  --> </script> </head> <body> </body> </html>