Javascript examples for Statement:Quiz
Run for loop from 0 to 9
<!DOCTYPE html> <html> <body> <p id="demo"></p> <script> var i;/*from ww w.j a v a 2 s . co m*/ for (i = 0; i < 10; i++) { document.getElementById("demo").innerHTML += i + "<br>"; } </script> </body> </html>