Skip to content

Commit

Permalink
const->let
Browse files Browse the repository at this point in the history
  • Loading branch information
ijsnow committed Jul 8, 2020
1 parent 1a0022d commit 113204e
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions site/buttons.js
@@ -1,19 +1,19 @@
const greenButton = document.querySelector('.simon-button.green');
let greenButton = document.querySelector('.simon-button.green');
greenButton.addEventListener('click', function() {
alert('You clicked the green button');
});

const redButton = document.querySelector('.simon-button.red');
let redButton = document.querySelector('.simon-button.red');
redButton.addEventListener('click', function() {
alert('You clicked the red button');
});

const yellowButton = document.querySelector('.simon-button.yellow');
let yellowButton = document.querySelector('.simon-button.yellow');
yellowButton.addEventListener('click', function() {
alert('You clicked the yellow button');
});

const blueButton = document.querySelector('.simon-button.blue');
let blueButton = document.querySelector('.simon-button.blue');
blueButton.addEventListener('click', function() {
alert('You clicked the blue button');
});

0 comments on commit 113204e

Please sign in to comment.