Javascript examples for Statement:Quiz
Make while loop start counting from 5 instead of 0
<!DOCTYPE html> <html> <body> <p id="demo"></p> <script> var i = 5; while (i < 10) { document.getElementById("demo").innerHTML += i + "<br>"; i++;//from w ww . ja v a 2 s . c o m } </script> </body> </html>