<div id="box"></div>
const element = document.querySelector("#box"); // Note: only class name, without the '.' element.classList.add("class-name");