ClassList menambahkan JS untuk menambahkan lebih dari satu kelas

// 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"]);
Inquisitive Iguana