javascript if classlist does not contains code example Example: if classlist contains js element.classList.contains(class);