Error on jQuery .addClass() function to button
I'm trying to add a class to a random button, but .addClass() is not working and shows me an error, and when I tried to use Vanilla JS classList.add() everything is working fine. const button = $('.btn'); const sound =…