<PLEASE USE THE FOLLOWING TEMPLATE TO HELP YOU CREATE A GREAT POST!>
<Below this line, add a link to the EXACT exercise that you are stuck at.>
<In what way does your code behave incorrectly? Include ALL error messages.>
I got my code correct but I was just wondering if anyone could explain to me the thinking behind the ‘n’ shortcut and why the instructions as per the code below. Why is there a need to create a variable in the first place and what is the purpose of removeClass and addClass?
<do not remove the three backticks above> The instructions for this exercise merely ask us to type the code but does not do a good job in explaining why it is typed that way and I wanted to find out more, thank you in advance!