addclass vanila javascript code example Example: addclass js vanilla element.classList.add('className');