Метод документа. CreateElement ()

const newButton = document.createElement("button");
Douglas Stemple