...
Solution Review: Add a Class
This lesson will explain the solution to the problem in the previous lesson.
Let’s start by discussing the addClass function. It takes two parameters, selector and className.
addClass
selector
className
On line 2, we use document.querySelector and pass ...
document.querySelector