File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change 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
525Debugging is the process of going through your code, finding any issues, and fixing them.
You can’t perform that action at this time.
0 commit comments