@yungvidSubmitted over 2 years ago
I feel my JavaScript code is too long
I feel my JavaScript code is too long
Hey. I am new on the platform and have also just completed this very challenge. You may have a look at how I did it, maybe we can borrow one or two insights from one another.
On the the long js you mentioned, I think the issue is that there is repetition of almost similar functionality. I would consider combining functions that differ a little bit into one function and then make use of loops. Btw, I solved the tooltip part using the regular old css :hover
:)
I am still reading your code and trying to keep on learning from you. I would share with you any suggestion and I would also appreciate your respected feedback regarding my code.
Cheers :)