Create an array with the classes you need:
const classArray = ['class1', 'class2'];
Then call the add() method from classList using the spread operator to add all classes at once:
add()
classList
element.classList.add(...classArray);