+ 10
[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
+ 4
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");
+ 7
Well where's the code??
+ 6
Thank you so much ODLNT and ⥠đ¸đđđđ⥠đđ
+ 4
Vats I forgot it, now it is visible..
+ 3
Your very welcome��
+ 2
https://code.sololearn.com/W5nGQ34UY12Q/?ref=app
I think this is what you want
+ 2
ANUSHKA GUPTA The code is visible and question is also solved.
0
where is the code