From f1a7b08aeac967c49bd1145189ac49f8ba4bd364 Mon Sep 17 00:00:00 2001 From: Karan <50290386+Sonawane-Karan26@users.noreply.github.com> Date: Fri, 3 Dec 2021 14:25:51 +0530 Subject: [PATCH] restructured --- Chapter 11/Project_2.html | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/Chapter 11/Project_2.html b/Chapter 11/Project_2.html index 27ae87c..228d49b 100644 --- a/Chapter 11/Project_2.html +++ b/Chapter 11/Project_2.html @@ -36,7 +36,7 @@ stars.forEach((star, index) => { star.starValue = (index + 1); star.addEventListener("click", starRate); - }) + }); function starRate(e) { output.innerHTML = `You Rated this ${e.target.starValue} stars`; stars.forEach((star, index) => { @@ -45,7 +45,7 @@ } else { star.classList.remove("orange"); } - }) + }); }