Do ... while loop and output calculation result : While « Language Basics « JavaScript DHTML
- JavaScript DHTML
- Language Basics
- While
Do ... while loop and output calculation result
<html>
<head>
<title>A Simple Page</title>
<script language="JavaScript">
var x = 1
do {
++x;
document.write(x+"<BR>");
}while (x < 10);
</script>
</head>
<body>
</body>
</html>
Related examples in the same category