DOM manipulation using JavaScript
DOM Manipulation Using JavaScript The theme for the last couple weeks has been DOM manipulation using JavaScript as I've worked on finishing up the Memory Game project. A big piece of the memory game project is using DOM methods to change HTML elements and updating the elements to reflect actions taken in the game. Examples would be the timer starting and stopping, move counter increasing by one each time two cards were opened and the star rating decreasing based on total moves made. Event listeners Event listeners are methods that wait for a particular action to occur before they fire. For the Memory Game project, event listeners are primarily set up in response to card click events. An example would be clicking a card which in turn kicks off code…