javascript has class conditional code example
Example: check if element with class has another class javascript
const div = document.querySelector('div');
div.classList.contains('secondary'); // trueCode language: JavaScript (javascript)
const div = document.querySelector('div');
div.classList.contains('secondary'); // trueCode language: JavaScript (javascript)