# Technical documentation user story problems

**URL:** <https://forum.freecodecamp.org/t/technical-documentation-user-story-problems/435261>\
**Category:** I Built This\
**Created:** [December 13, 2020, 8:12pm UTC](https://forum.freecodecamp.org/t/technical-documentation-user-story-problems/435261 "2020-12-13T20:12:25Z")\
**Posts on this page:** 6\
**Page:** 1

<div class="post-metadata">

**Author:** ![mcfeegles](https://sea3.discourse-cdn.com/freecodecamp/user_avatar/forum.freecodecamp.org/mcfeegles/32/188796_2.png) [@mcfeegles](https://forum.freecodecamp.org/u/mcfeegles)\
**Post date:** [December 13, 2020, 8:12pm UTC](https://forum.freecodecamp.org/t/technical-documentation-user-story-problems/435261/1 "2020-12-13T20:12:25Z")

</div>

I am experiencing several user story errors. For example user story 4:

## . Each element with the class of “main-section” should also have an id comprised of the innerText contained within it, with underscores in place of spaces. The id may include special characters if there are special characters in the respective innerText. (e.g. The that contains the header, “JavaScript & Java”, should have a corresponding id=“JavaScript\_&\_Java”).

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.

additionally, I have also tried to make a dark-mode button using some JavaScript. It is targeting the body element. It worked at the start before I added the CSS, but now it is not working and I am not sure why. Any pointers would really help.

Thanks in advance.

Edit: Forgot to put link: 🤦‍♂️

[https://codepen.io/mcfeegles/pen/wvzadMm](https://codepen.io/mcfeegles/pen/wvzadMm)

---

<div class="post-metadata">

**Author:** ![kevinSmith](https://sea3.discourse-cdn.com/freecodecamp/user_avatar/forum.freecodecamp.org/kevinsmith/32/72934_2.png) [@kevinSmith](https://forum.freecodecamp.org/u/kevinSmith)\
**Post date:** [December 13, 2020, 9:09pm UTC](https://forum.freecodecamp.org/t/technical-documentation-user-story-problems/435261/2 "2020-12-13T21:09:08Z")

</div>

Can we see your code please?

---

<div class="post-metadata">

**Author:** ![mcfeegles](https://sea3.discourse-cdn.com/freecodecamp/user_avatar/forum.freecodecamp.org/mcfeegles/32/188796_2.png) [@mcfeegles](https://forum.freecodecamp.org/u/mcfeegles)\
**Post date:** [December 13, 2020, 9:25pm UTC](https://forum.freecodecamp.org/t/technical-documentation-user-story-problems/435261/3 "2020-12-13T21:25:14Z")

</div>

Yes sorry I copied the link to the clipboard, just forgot to paste into the post. Sorry

---

<div class="post-metadata">

**Author:** ![kevinSmith](https://sea3.discourse-cdn.com/freecodecamp/user_avatar/forum.freecodecamp.org/kevinsmith/32/72934_2.png) [@kevinSmith](https://forum.freecodecamp.org/u/kevinSmith)\
**Post date:** [December 13, 2020, 9:41pm UTC](https://forum.freecodecamp.org/t/technical-documentation-user-story-problems/435261/4 "2020-12-13T21:41:06Z")

</div>

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:

```auto
       <li> <a class="nav-link" href="#Global_Variable">
           Global Variable
       </li>

```

and:

```auto
     <section class="main-section" id="Global_Variable">
       <header>Global Variables</header>

```

Sometimes it is plural, sometimes it is not. Those should all match.

---

<div class="post-metadata">

**Author:** ![mcfeegles](https://sea3.discourse-cdn.com/freecodecamp/user_avatar/forum.freecodecamp.org/mcfeegles/32/188796_2.png) [@mcfeegles](https://forum.freecodecamp.org/u/mcfeegles)\
**Post date:** [December 13, 2020, 9:50pm UTC](https://forum.freecodecamp.org/t/technical-documentation-user-story-problems/435261/5 "2020-12-13T21:50:10Z")

</div>

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.

---

<div class="post-metadata">

**Author:** ![ILM](https://sea3.discourse-cdn.com/freecodecamp/user_avatar/forum.freecodecamp.org/ilm/32/363239_2.png) [@ILM](https://forum.freecodecamp.org/u/ILM)\
**Post date:** [June 1, 2021, 1:07pm UTC](https://forum.freecodecamp.org/t/technical-documentation-user-story-problems/435261/6 "2021-06-01T13:07:42Z")

</div>

Closed on June 1, 2021, 1:07pm UTC


