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.log
s 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 === ""){
...
}