Fazza Razaq Amiarso• 2,340
@fazzaamiarso
Posted
Hello Sam! Nice work!
You can move this piece of code outside the forEach
loop because you only need to attach it once.
button.addEventListener("click", ()=>{
component.classList.add("hide");
feedback.classList.add("flex");
})
I hope it helps! Cheers!
Marked as helpful
0
Sam Kikoma• 140
@Sam-Kikoma
Posted
@fazzaamiarso Thanks a lot
0