restructured
This commit is contained in:
@@ -10,8 +10,8 @@
|
|||||||
divs.forEach((el)=>{
|
divs.forEach((el)=>{
|
||||||
el.addEventListener("click",()=>{
|
el.addEventListener("click",()=>{
|
||||||
document.body.style.backgroundColor = el.textContent;
|
document.body.style.backgroundColor = el.textContent;
|
||||||
})
|
});
|
||||||
})
|
});
|
||||||
</script>
|
</script>
|
||||||
</body>
|
</body>
|
||||||
</html>
|
</html>
|
||||||
|
|||||||
Reference in New Issue
Block a user