
One task, multiple solutions
In Javascript, it is very common to achieve a task in multiple ways.
For example, in the last lesson, on the body tag, we have replaced the no-js class with js class by using the add and remove methods of the classList object.
<body class="no-js page-template-home-page"