One of the best ways to learn JavaScript is to create projects. One of the best and funnest ways is to create games.
We just published a course on the freeCodeCamp.org YouTube channel that will help you learn JavaScript by building 7 different retro games.
Ania Kubów created this course. She has created many popular courses both on her own channel and the freeCodeCamp YouTube channel.
You will learn how to create clones of the following games:
Rock Paper Scissors

Memory Game

Whac-a-mole

Breakout

Frogger

Connect Four

Space Invaders

Watch the full course below or on the freeCodeCamp.org YouTube channel (5-hour watch).