Last active
June 13, 2018 04:05
-
-
Save sirdarthvader/8b7628c047e33d2d1fdf31ffc019bf43 to your computer and use it in GitHub Desktop.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
// Reset Game... | |
resetButton.addEventListener('click', function(){ | |
colors = generateRandomColors(6); | |
pickedColor = pickColor(); | |
for(i=0; i<=squares.length; i++) { | |
squares[i].style.backgroundColor = colors[i]; | |
} | |
}) |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment