diff --git a/script.js b/script.js new file mode 100644 index 0000000..071b263 --- /dev/null +++ b/script.js @@ -0,0 +1,15 @@ +// script.js +function outputHelloWorld() { + const app = document.getElementById('app'); + const paragraph = document.createElement('p'); + paragraph.textContent = 'Hello World'; + app.appendChild(paragraph); +} + +function repeatOutput() { + for (let i = 0; i < 5; i++) { + outputHelloWorld(); + } +} + +repeatOutput(); \ No newline at end of file