Javascript examples for Statement:Quiz
Make while loop start counting from 5. Count up to (including) 50 and count only every fifth number.
<!DOCTYPE html> <html> <body> <p id="demo"></p> <script> var i = 5; while (i <= 50) { document.getElementById("demo").innerHTML += i + "<br>"; i = i + 5; } </script>/* w w w. j a v a2s.co m*/ </body> </html>