1 line
283 B
JavaScript
1 line
283 B
JavaScript
|
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
|