dev1 – The Moron Test Game Logic

This week we finally build our functions to test whether the correct icons have been clicked in the correct order. We start with building our eventListener that listens for clicks on the <i> elements (icons). This listener is going to be able to also report the index value of the icon clicked. And that value will be used to check if it was the correct icon.

There are three videos from the Playlist this week which take you through these steps:

For the Blog:

Describe how the spread operator is used to convert a node list of selected elements into an array. Describe why we needed this conversion and how the array was helpful for our first test in the game’s logic.

Leave a comment

Your email address will not be published. Required fields are marked *