Thank you for posting to my question about functions. I tried to use your explanation to fix my functions but the way the book wants me to do them is a little different. If you have time would you be able to help me? My functions are:

function init() {var submenuHeads = document.getElementsByClassName(“submenuHead”);for (var i = 0; i submenuHeads[i].onclick = showMenu;}}function hideAllMenuLists() {var allMenuLists = document.quarySelectorAll(“li.submenu ul”);for (var i = 0; i allMenuLists[i].style.display = “none”;}}function showMenu() {var subIndex = parseInt(;var allMenus = document.getElementByClassName(“submenu”);var currentMenu = document.getElementById(allMenus);var currentMenuList = currentMenu + “.ul[0]”; = “none”;}

I can send the steps and link my folder if you need.

"Looking for a Similar Assignment? Get Expert Help at an Amazing Discount!"