Skip to content

Commit 9aa9911

Browse files
committed
'Random Background Color Changer' style: README.md step 4 (variation_2)
1 parent 1c132ab commit 9aa9911

1 file changed

Lines changed: 14 additions & 11 deletions

File tree

__4__step__/README.md

Lines changed: 14 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -6,17 +6,20 @@
66
</summary>
77
<h3>Step 4</h3>
88
<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.
9+
CamperBot is finished with building out the
10+
getRandomIndex function and it is working as expected. But now they are running into this issue
11+
when trying to create a reference to the <code>body</code> element in the DOM:
12+
</p>
13+
<p>
14+
<code>Uncaught TypeError: document.queryselector is not a function</code>
15+
</p>
16+
<p>
17+
A TypeError means that the code is trying to perform
18+
an operation on a value that is not of the expected type.
19+
</p>
20+
<p>
21+
Fix the TypeError by updating the document.queryselector
22+
method to the correct method name that selects an element from the DOM.
2023
</p>
2124
</details>
2225

0 commit comments

Comments
 (0)