javascript add html to a div code example
Example: JavaScript append HTML
let app = document.querySelector('#app');
app.append('append() Text Demo');
console.log(app.textContent);
let app = document.querySelector('#app');
app.append('append() Text Demo');
console.log(app.textContent);