append() vs appendchild() examples
Example: .append js
let parent = document.createElement("div")
parent.append("Some text")
console.log(parent.textContent) // "Some text"
let parent = document.createElement("div")
parent.append("Some text")
console.log(parent.textContent) // "Some text"