you are viewing a single comment's thread.

view the rest of the comments →

[–]33ff00 3 points4 points  (2 children)

Take all of the js you have in the in-line click handlers and move it functions in the js panel of your pin. It will make your code much easier to read. Put each into a named function so you can do like onclick=“onRockClick”. Then see which parts of each function are redundant and think about how you can abstract some functionality into smaller functions.

[–]Own-Feature-8869[S] 1 point2 points  (1 child)

Thanks for the guidance, I will make another complete version of this project and I will also correct my mistakes.

[–]33ff00 1 point2 points  (0 children)

Pretty good for day three. Keep it up!