Created
August 11, 2021 15:22
Revisions
-
apelmahmudDev revised this gist
Aug 11, 2021 . 1 changed file with 1 addition and 1 deletion.There are no files selected for viewing
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 charactersOriginal file line number Diff line number Diff line change @@ -3,5 +3,5 @@ const palette = document.querySelector('#palette'); palette.addEventListener('click', handleColorClick); function handleColorClick(el) { console.log(`You clicked on this color: ${el.target.style.backgroundColor}`); } -
apelmahmudDev created this gist
Aug 11, 2021 .There are no files selected for viewing
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 charactersOriginal file line number Diff line number Diff line change @@ -0,0 +1,7 @@ জাভাস্ক্রিপ্ট const palette = document.querySelector('#palette'); palette.addEventListener('click', handleColorClick); function handleColorClick(el) { console.log(`You clicked on this color: ${el.target.style.backgroundColor}`); }