In this JavaScript game tutorial for beginners I will explain how to code a number memorising game.
Things we will cover:
- JavaScript's setTimeout function
- manipulating the DOM
- JavaScript's Math.random() and Math.floor() functions
You can see the live project on CodePen:
https://codepen.io/patriciamolnar/full/zYdWmGz
Source Code:
https://github.com/patriciamolnar/tutorials/tree/master/JavaScript%20Number%20Memorising%20Game%20Tutorial
Watch some of my other tutorials that I created:
- SVG animation: animate an SVG with CSS and JavaScript:
https://youtu.be/eSpHvESNcZQ
- CSS text animation with variable fonts:
https://youtu.be/JbjA4oE4Ma4
- Add underline animation to your website with JavaScript Intersection Observer API:
https://www.youtube.com/watch?v=B7laJa9KUaI&t=1s
I put out web development and design tutorials every 1 - 2 weeks, so subscribe for more:
https://www.youtube.com/channel/UCnTVj2blZd9xpbo2t7ARw/?sub_confirmation=1
I am also on social media, so feel free to connect and reach out:
Twitter: https://twitter.com/pmcoding
Instagram: https://instagram.com/pmcoding
CodePen: https://codepen.io/patriciamolnar