Lesson 11 (toggleClass)


#1

https://www.codecademy.com/courses/learn-javascript/lessons/javascript-dom/exercises/toggle-class?action=lesson_resume

What’s the dfference between toggle and toggleClass?







#2

toggle is an animation method that toggles state, whereas toggleClass adds or removes a class in the DOM. A state could be visibility, for instance.


#3

Thank you, Roy!

Helpful.


#4

This topic was automatically closed after 7 days. New replies are no longer allowed.