Skip to content

Commit

Permalink
Update script.js
Browse files Browse the repository at this point in the history
  • Loading branch information
ThisIsAR7 authored Sep 26, 2024
1 parent 1174d3c commit cdd12eb
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion script.js
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@ for(let i = 0; i < SQUARES; i++) {
const square = document.createElement('div')
square.classList.add('square')

square.addEventListener('mouseover', () => setColor(square))
square.addEventListener('mouseover', () => setColor())

square.addEventListener('mouseout', () => removeColor(square))

Expand Down

0 comments on commit cdd12eb

Please sign in to comment.