append javascript variable to html code example
Example 1: how to append a variable to html
temp.append('temperature: ' + response.main.temp)
Example 2: JavaScript append HTML
let app = document.querySelector('#app');
app.append('append() Text Demo');
console.log(app.textContent);