Skip to content

Commit 1c132ab

Browse files
committed
'Random Background Color Changer' docs: README.me add description step 4 (variation_2)
1 parent 2ccba11 commit 1c132ab

1 file changed

Lines changed: 20 additions & 0 deletions

File tree

__4__step__/README.md

Lines changed: 20 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,25 @@
11
<a id=top></a>
22

3+
<details>
4+
<summary>
5+
<h4>Description of the task</h4>
6+
</summary>
7+
<h3>Step 4</h3>
8+
<p>
9+
CamperBot is finished with building out the getRandomIndex function and it is working as expected.
10+
11+
But now they are running into this issue
12+
when trying to create a reference to the
13+
body element in the DOM:
14+
15+
Example Code
16+
Uncaught TypeError: document.queryselector is not a function
17+
A TypeError means that the code is trying to perform an operation on a value that is not of the expected type.
18+
19+
Fix the TypeError by updating the document.queryselector method to the correct method name that selects an element from the DOM.
20+
</p>
21+
</details>
22+
323
# Random Background Color changer
424

525
Debugging is the process of going through your code, finding any issues, and fixing them.

0 commit comments

Comments
 (0)