how to to add a class in vanilla js code example Example: addclass js vanilla element.classList.add('className');