Skip to content

Instantly share code, notes, and snippets.

@sirdarthvader
Last active June 13, 2018 04:05
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save sirdarthvader/8b7628c047e33d2d1fdf31ffc019bf43 to your computer and use it in GitHub Desktop.
Save sirdarthvader/8b7628c047e33d2d1fdf31ffc019bf43 to your computer and use it in GitHub Desktop.
// 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