javascript class contains code example Example: js contains class element.classList.contains('class');