@JimTK16
Posted
Hi Abraham, nice attempt at this challenge. My suggestion is to put the actions in a separate function (something like clickHandler) to keep your code easier to follow. Also, you might want to have clearer names for your variables. For example, if I quickly scan through your code, it would take me some time to figure out what is 'cls'. Hope it helps. Jim
Marked as helpful
@Abraham-s-yakubu
Posted
@JimTK16 thanks for the feedback I still new to JavaScript 😅