1let newButton = document.createElement('button');
2newButton.setAttribute("id", "myNewButton");
3newButton.className = "myClassName";
4newButton.innerText = "clickMe";
5newButton.addEventListener("click", clickMe);
6document.body.appendChild(newButton);
7function clickMe(){
8 console.log("Hi! I am a new Button.");
9}