I have a function that creates a sort of container. The problem is that it should create a new container every time I write some text and append it to the body, instead it puts the new text over the old one and it doesn't create a new container every time.
This is the function:
controlerEl.innerHTML = "";
const note = document.createElement("div");
note.classList.add("note-box-container");
note.innerHTML = "...html code here"
document.querySelector("body").appendChild(note);
}```
And here are some ss on what is happening: