Vanilla JavaScript game
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 inbuilt JavaScript functions.
View the full tutorial [here]:(https://www.youtube.com/watch?v=o93jem7oPnA&t=21s)
As always, if you get stuck or have any questions, please do comment below and I will be sure to get back to you!
I would love to see what you made so please tag me on twitter on @ania_kubow or mention me on Youtube so I can find it and see.