First is the insertRule function, which looks like this: You can append strings to className if you want to add a class to an element, or you could just overwrite className and assign it a whole new class. There are a few things to keep in mind, though.
Through the DOM, you have access to a style object that describes the style of an element. Remember, by default array.
Display list of elements in div using js.