Memory Game is a simple card game where you need to match pairs by turning over 2 cards at a time. To create this game I used vanilla(plain) JavaScript, HTML, and CSS. During the work on this project, I learned:
- Basics about Grid and its properties.
- How to display a particular piece of text with CSS and JavaScript by wrapping it in a span tag.
- How to make a close button using the symbol ( ×) as the X icon.
- Modal/pop-up windows and how to implement them.
- How to sets or return the text content of the specified node using textContent and innerHTML property (depending on tags presence).
- How to add the cards by using the appendChild() method.
- Basics about code refactoring and why it is so important to clean up your code.
Feel free to follow the link below and test your memory.
Memory Game on GitHub Pages
Source code on GitHub