A useful resource for learning is the Skillscrush.com blog.
They also have some excellent coding projects for a portfolio.
On this page I changed the code for this bouncing balls canvas to a simple game.
I rewrote the code to make sure I understood each step(...well almost) and changed the balls to turn red when clicked.