I am getting an error in this

When I click on a navbar element, the page should navigate to the corresponding section of the “main-doc” element (e.g. If I click on a “nav-link” element that contains the text “Hello world”, the page navigates to a element that has that id and contains the corresponding .


I’m clicking on JavaScript link in the nav menu but the page is not scrolling to the JavaScript section. That’s why you are getting this error. Make sure all of your nav links scroll to the appropriate section of the page.

Hint: Case is important. “javaScript” is not the same as “JavaScript”.

This topic was automatically closed 182 days after the last reply. New replies are no longer allowed.