File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change 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
You can’t perform that action at this time.
0 commit comments