content
content copied to clipboard
Conditionals 4 live code misses document.querySelector
MDN URL
https://developer.mozilla.org/en-US/docs/Learn/JavaScript/Building_blocks/Test_your_skills:_Conditionals
What specific section or headline is this issue about?
Conditionals 4 code box
What information was incorrect, unhelpful, or incomplete?
Under the // Don't edit the code below here!
, an incorrect line of code: section.innerHTML = ' ';
prevents the message from being put into the document.
Instead, there should be: const section = document.querySelector('section');
What did you expect to see?
const section = document.querySelector('section');
Do you have any supporting links, references, or citations?
No response
Do you have anything more you want to share?
No response
MDN metadata
Page report details
- Folder:
en-us/learn/javascript/building_blocks/test_your_skills_colon__conditionals
- MDN URL: https://developer.mozilla.org/en-US/docs/Learn/JavaScript/Building_blocks/Test_your_skills:_Conditionals
- GitHub URL: https://github.com/mdn/content/blob/main/files/en-us/learn/javascript/building_blocks/test_your_skills_colon__conditionals/index.md
- Last commit: https://github.com/mdn/content/commit/4f6ba2f5a1615fe155292cac416c7ab6b9d711ec
- Document last modified: 2022-09-11T17:33:19.000Z