I am experiencing several user story errors. For example user story 4:
However I have checked the id’s and the corresponding header titles and they are the same. I am not sure what I am needing to fix these errors. It is the same with the other user stories, I am unsure why they are failing.
Thanks in advance.
Edit: Forgot to put link:
Can we see your code please?
Yes sorry I copied the link to the clipboard, just forgot to paste into the post. Sorry
The part of the error message that you quote has general example at the end. If you look further, there is specific information:
Some “main-section” elements are missing the following ids (don’t forget to replace spaces with underscores!) : GLOBAL_VARIABLES,COSTANTS,FUNCTION_DECLARATION : expected 3 to equal 0
AssertionError: Some “main-section” elements are missing the following ids (don’t forget to replace spaces with underscores!) : GLOBAL_VARIABLES,COSTANTS,FUNCTION_DECLARATION : expected 3 to equal 0
When I look at the sections for Global Variables, I see:
<li> <a class="nav-link" href="#Global_Variable">
<section class="main-section" id="Global_Variable">
Sometimes it is plural, sometimes it is not. Those should all match.
Ahh Thanks, for that now I understand a bit better in how to read the error messages. Definitely learning that coding hates typo’s and spelling mistakes.