From f2aaff44a05f53359bf7623553747436c084ab12 Mon Sep 17 00:00:00 2001 From: Karan <50290386+Sonawane-Karan26@users.noreply.github.com> Date: Fri, 3 Dec 2021 14:20:57 +0530 Subject: [PATCH] restructured --- Chapter 11/Exercise_11.4.html | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/Chapter 11/Exercise_11.4.html b/Chapter 11/Exercise_11.4.html index 73e7de0..cccfec6 100644 --- a/Chapter 11/Exercise_11.4.html +++ b/Chapter 11/Exercise_11.4.html @@ -13,16 +13,16 @@ output.style.backgroundColor = "red"; output.addEventListener("mousedown", function (e) { message("green", e); - }) + }); output.addEventListener("mouseover", function (e) { message("red", e); - }) + }); output.addEventListener("mouseout", function (e) { message("yellow", e); - }) + }); output.addEventListener("mouseup", function (e) { message("blue", e); - }) + }); function message(elColor, event) { console.log(event.type); output.style.backgroundColor = elColor;