On Line no 149 : detailSection.addEventListener("click", disappearPage()):
When you are calling a function In your event listener you don't need to add ( ) after your function name
You can simply call it by only the function name ("click", disappearPage);
On Line no 149 :
detailSection.addEventListener("click", disappearPage()):
When you are calling a function In your event listener you don't need to add( )
after your function name You can simply call it by only the function name("click", disappearPage);