+ 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

27th Jul 2021, 8:30 AM
Shobhit :)
Shobhit :) - avatar
8 Respuestas
+ 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");
27th Jul 2021, 11:20 AM
ODLNT
ODLNT - avatar
+ 7
Well where's the code??
27th Jul 2021, 8:34 AM
Queen👽
Queen👽 - avatar
+ 6
Thank you so much ODLNT and ♡ 𝑸𝒖𝒆𝒆𝒏♡ 😍😍
27th Jul 2021, 11:23 AM
Shobhit :)
Shobhit :) - avatar
+ 4
Vats I forgot it, now it is visible..
27th Jul 2021, 10:21 AM
Shobhit :)
Shobhit :) - avatar
+ 3
Your very welcome��
27th Jul 2021, 11:25 AM
ODLNT
ODLNT - avatar
+ 2
27th Jul 2021, 11:22 AM
Queen👽
Queen👽 - avatar
+ 2
ANUSHKA GUPTA The code is visible and question is also solved.
28th Jul 2021, 4:13 AM
Shobhit :)
Shobhit :) - avatar
0
where is the code
28th Jul 2021, 2:54 AM
ANUSHKA GUPTA