HTML Editor
<!DOCTYPE html> <html lang="en-US"> <body> <p>This for loop will execute 6 times.</p> <p id="point"></p> <script> var x = document.getElementById("point"); var txt = ""; for(var i = 0; i <= 5; i++) txt += i; x.innerText = txt; </script> </body> </html>
OUTPUT
×

Save as Private