- Used vanilla javascript only to bulid this game
- Set the global variables to the game
- Once the window loads completely then start the game using "load" event listener
- Added Arrays to store the strings being used by the game (users choice and random game choice of colors)
- Added setTimout property to remove classes and add the recursion event once user done their click event
- Used toString() method in Array to check the both colors matched btw them and added if/else statement for it
- Added the div element to show the results of the game
Rules,
- Press start button to start the game
- Match the color and press button again to continue game
- Match the colors as much can possible
- Guessed wrong means restart the game