Skip to content

Commit 925e4aa

Browse files
committed
'Random Background Color Changer' docs: README.md update main README.md (variation_2)
1 parent 9aa9911 commit 925e4aa

1 file changed

Lines changed: 21 additions & 0 deletions

File tree

README.md

Lines changed: 21 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -10,6 +10,27 @@ In this project, you will help CamperBot build a random background color changer
1010
<summary>
1111
<h4>Description of the Tasks</h4>
1212
</summary>
13+
<details>
14+
<summary>
15+
<h5>Step 4</h5>
16+
</summary>
17+
<p>
18+
CamperBot is finished with building out the
19+
getRandomIndex function and it is working as expected. But now they are running into this issue
20+
when trying to create a reference to the <code>body</code> element in the DOM:
21+
</p>
22+
<p>
23+
<code>Uncaught TypeError: document.queryselector is not a function</code>
24+
</p>
25+
<p>
26+
A TypeError means that the code is trying to perform
27+
an operation on a value that is not of the expected type.
28+
</p>
29+
<p>
30+
Fix the TypeError by updating the document.queryselector
31+
method to the correct method name that selects an element from the DOM.
32+
</p>
33+
</details>
1334
<details>
1435
<summary>
1536
<h5>Step 5</h5>

0 commit comments

Comments
 (0)