hasClass(document.querySelector('p.special'), 'special'); doesn't make sense. If you're already searching with the class in selector, couldn't you just do if (document.querySelector('p.special')) ?
For further actions, you may consider blocking this person and/or reporting abuse
We're a place where coders share, stay up-to-date and grow their careers.
hasClass(document.querySelector('p.special'), 'special');
doesn't make sense. If you're already searching with the class in selector, couldn't you just doif (document.querySelector('p.special'))
?