[Solved] Q. Can anyone figure out the mistake here? | Sololearn: Learn to code for FREE!


[Solved] Q. Can anyone figure out the mistake here?

The mistake is in line 135, the rock icon isn't changing on click. https://code.sololearn.com/W6buCMOB1g4W/?ref=app

8 Answers

New Answer


The problem is that you're trying to toggle 2 classes at once: rockicon.classList.toggle("fas fa-hand-rock"); Should be rockicon.classList.toggle("fas");


Well where's the code??


Thank you so much ODLNT and ♡ 𝑸𝒖𝒆𝒆𝒏♡ 😍😍


Vats I forgot it, now it is visible..


Your very welcome��


https://code.sololearn.com/W5nGQ34UY12Q/?ref=app I think this is what you want


ANUSHKA GUPTA The code is visible and question is also solved.


where is the code