This screencast takes you through a simple example of the steps to refactoring JavaScript code using onclick properties, a for loop, the forEach() method, and new JavaScript arrow functions. In a nutshell it shows you 5 ways of doing the same thing with less and less code.
Thanks for watching and happy coding!
All of my YouTubes can be found at:
https://learncs.w3spaces.com/