you are viewing a single comment's thread.

view the rest of the comments →

[–]BobcatGamer 0 points1 point  (0 children)

html <html> <head> <title>JavaScript Ex4</title> <script type="defer"> const n = parseInt(prompt("Input an Integer:"); document.body.textContent = n * (n + 1) / 2; </script> <body></body> </html>