Add script.js

This commit is contained in:
2026-03-20 17:55:07 +09:00
parent 63096daff4
commit 8fdb688a97

15
script.js Normal file
View File

@@ -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();