comprobar si tinene una cllas jQuery
const element = document.querySelector("#box");
element.classList.contains("active");
Xanthous Xenomorph
const element = document.querySelector("#box");
element.classList.contains("active");