Menu

Simple JS hide/unhide toggle

I was trying to find a simple way to do what JQuery does with toggling and changing classes in JavaScript.
I found a simple solution by using javaScripts DOM Toggle class.
getElementById.classList.toggle("hide");

You can check it out on my codepen:
JavaScript Toggle example