// to add elem.classList.add("first", "second", "third"); // or, elem.classList.add(...["first","second","third"]); // to remove elem.classList.remove("first", "second", "third"); // or, elem.classList.remove(...["first","second","third"]);