@GrzywN
Posted
Great job on the challenge!
I would recommend you to try improving your JavaScript by making it more readable and maintainable. Always remember to try not to repeat yourself (DRY rule). You can do it, by iterating object or array with all elements you want to target using some kind of loop (for, for of, for in, forEach) and adding eventListeners
in its body. Finding good solution can be difficult at first, but over time you will get the hang of it. If you want you can see my solution to see how you can handle similar problems in the future. Remember that no one is perfect and everyone had tough beginnings.
Hope this helps! Keep it up and have a nice day and happy coding! :)
Marked as helpful