htdocs/board/gen/displayComments.js
2024-12-24 22:44:26 +00:00

1 line
283 B
JavaScript
Executable File

let divText = document.getElementById("comments").innerHTML; newPageHTML=""; for (let comment = 0; comment < comments.length; comment++) { newPageHTML+=`<b>${comments[comment][0]}</b>: <i>${comments[comment][1]}</i><br/>`}; document.getElementById("comments").innerHTML = newPageHTML