Sakthivel Ramesh• 150
@sakthivel155
Posted
Hi @Steven-Ang,
I suggest optimizing your code by using the classList.toggle()
method instead of individually adding or removing
classes. This approach simplifies the code and enhances readability.
0
@sakthivel155
Posted
Hi @Steven-Ang,
I suggest optimizing your code by using the classList.toggle()
method instead of individually adding or removing
classes. This approach simplifies the code and enhances readability.
@a-yemisi
Posted
Looks alright
Well done.
Join thousands of Frontend Mentor community members taking the challenges, sharing resources, helping each other, and chatting about all things front-end!
Join our Discord