variables sections: The nodeList of all sections. sectionsArr: convert the nodeList to an array of all sections. navContainer: I made it to to be able to appear and disappear the navbar menu. finally: This is what I can do.