In this Javascript code-along video I show beginner programmers how to use event listeners to track mouse clicks and mouse movement.

Come join me to improve your coding skills!

While it’s not a tutorial as such this video looks at:

  • declaring variables – using let and const
  • using functions
  • using event listeners to detect the click event
  • using event listeners to detect the mousemove event
  • basic drawing on the HTML Canvas element

The idea behind this code-along series is that practicing a little every day is a great way to improve your programming skills. Rather than coming up with your own projects you can code along with me. Then experiment and take the code to the next level.

Find all of the code-along Javascript in this public GitHub repository:

https://github.com/nilsm/code-along

Here is the video – enjoy and let me know in the video’s comments if you have any questions!