I am trying to add a function to multiple <td> without having to actually write so many times addEventListener.
So I have the code below. I wrote in js some comments telling what is wrong and what I wanted to do. What is the best way to do that? https://code.sololearn.com/WPBLpTQ9I6H7/?ref=app
Alex Tusinean My apologies for the delay response. I refactored the code in question I believe it makes the code easier to follow. If not let me know. https://code.sololearn.com/WUaiNiQmAP6n/#js