append to div code example
Example 1: jquery add div element
$('#someParent').append('<div>I am new here</div>');
Example 2: how to appendChild in the begin of the div javascript
var element = document.getElementById("div1");
element.insertBefore(para, element.firstChild);
Example 3: JavaScript append HTML
let app = document.querySelector('#app');
app.append('append() Text Demo');
console.log(app.textContent);