Toggle hide and show does not work? (using JS to manipulate the dom)

the effect I wanna achieve is pretty simple, by default, the ul element will be hidden, once you clicked on the hamburger button, it will show all of the ul element.

I have tried two ways of doing it… both did not work…
Could someone check the javascript section and tell me which part I got it wrong?

Misspelling, it’s toggle, not toogle

thanks for the help!

1 Like