Hello everyone,
Not sure if there is a bug in the JS script that’s validating the code …but not able to pass 4 test cases…even after numerous attemps
It would be great if someone in the community point me where the mistake is…
Here is the code pen link: https://codepen.io/Agastya_Teja/pen/VwLJQJX
Hi @aanumanc
Error #9: You have two headers in the navbar element, wherein the test requires you to have only one. Remove the extra header in the navbar…
<div class="child-1">
<nav id="navbar">
<header>
<h1>JavaScript Documentation</h1>
</header>
<nav id="navbar">
<header>JS Documentation</header>
Error #10: This test case fails because there are 14 nav-links in the code instead of 10. The test case needs only 10 nav-links. Remove the extra ones
hi thanks for answering these question… I updated as per your suggestion but still have 2 errors. Please let me know…if you know how to fix it?
https://codepen.io/Agastya_Teja/pen/VwLJQJX
Hi @aanumanc,
For Test#13: The nav-link href and section id for Hello world don’t match. If you click on Hello world in the side navigation, it won’t show the corresponding Hello world section. Matching them would fix the test
<li><a class="nav-link" href="#Hello_world">Hello world</a></li>
<section class="main-section" id="Hello_World">
Test #10: There is no section corresponding to the topic Variables. Create a section with id that matches to Variables nav-link href as you did for other topics. This will fix the test.