1 00:00:00,150 --> 00:00:07,320 We can switch between adding and removing classes using the toggle class method to see how it works. 2 00:00:07,320 --> 00:00:14,210 Simply replace the removed class method with toggle class. 3 00:00:16,400 --> 00:00:18,330 And this is in the file from our last lesson 4 00:00:21,730 --> 00:00:25,890 and just update the label on your button from remove to toggle. 5 00:00:25,990 --> 00:00:30,750 Class Notes save the file and when you refresh the page 6 00:00:35,130 --> 00:00:40,710 you can see that we can use the same button to trigger an add class and remove class event.