Menu Home


Hi everyone, and welcome to another deep-sleep episode of Boring JavaScript! Today, we tackle the ‘classList’ object. Back in the old days, we had to manually manipulate the ‘className’ string of an HTML element in order to change classes. What a pain! But with the ‘classList’ object, you can now add or remove or do all sorts of wonderful things to the listing inside of the class attribute. Want to see how it works? Of course you do! Dive right into our video – and try to keep awake.