Learn to make a simple grid-based game using HTML, CSS and JavaScript. The idea of whack-a-mole is simple! The player needs to hit the grid with the mole in as many times as possible until the time runs out. In this tutorial, we will cover:

  • document.querySelector()
  • textContent
  • forEach
  • addEventListener
  • setInterval
  • classList.add

…and many more.

As always, if you get stuck or have any questions, please do comment below and I will be sure to get back to you!

#javascript

Whac-a-mole in JavaScript (Super Simple!)
2.20 GEEK