document.getElementById("container").classList.add("main");
document.getElementsByClassName("example")[0];
const myElement = document.querySelector(".my-element"); myElement.classList.add("my-class");