There is a link a(href= "javascript://0" onclick = "hidden ()") , and the function itself
function hidden () { $('.site-nav__menu-item--hidden').toggleClass('.site-nav__menu-item--visible'); }; There is an object that can change its properties by clicking on this link (by adding / removing a new class that can override these properties)
.site-nav__menu-item--hidden{ display: none; } .site-nav__menu-item--visible{ display: inline-block; } Why doesn't the script work?