I\'m fairly new to JS development and I\'ve recently discovered the concept of DRY (Don\'t Repeat Yourself), which has helped me clean up my code a lot.
I have the follow