Why doesn't my function work?

Can someone take a look and tell me why doesn’t this work?

Hello there,

This is never true:

if (menu.style.display === "none"

Throw some console.logs in there to debug what is what.

Hope this helps

Also, you are making your life difficult, trying to click on such small elements. I suggest you create an actual clickable element. Research into making a custom button.

if (menu.style.display === "none"
Try using

if(menu.style.display === ""){