Welcome to the Treehouse Community
Want to collaborate on code errors? Have bugs you need feedback on? Looking for an extra set of eyes on your latest project? Get support with fellow developers, designers, and programmers of all backgrounds and skill levels here with the Treehouse Community! While you're at it, check out some resources Treehouse students have shared here.
Looking to learn something new?
Treehouse offers a seven day free trial for new students. Get access to thousands of hours of content and join thousands of Treehouse students and alumni in the community today.
Start your free trialAli Sh
2,026 Pointscode challenge error!!!
every time i submit my code a message appear to reload the code challenge, what should i do to fix it???
const section = document.querySelector('section');
let paragraphs;
<!DOCTYPE html>
<html>
<head>
<title>Child Traversal</title>
</head>
<body>
<section>
<p>This is the first paragraph</p>
<p>This is a slightly longer, second paragraph</p>
<p>Shorter, last paragraph</p>
</section>
<footer>
<p>© 2016</p>
</footer>
<script src="app.js"></script>
</body>
</html>
2 Answers
Adam Beer
11,314 PointsHi Ali. Use children property. "ParentNode.children". So let pharagraphs equal to "ParentNode.children"
Martin Lecke
14,385 PointsActually there might be a bug with the challenge, i cant get passed "Check work" either. You should report it
Adam Beer
11,314 PointsReplace it the "parentNode" word to the actual "parentNode" element. It is working for me.
Martin Lecke
14,385 PointsGreat i was just getting Error, Reload the challenge when i tried
Adam Beer
11,314 PointsCan I give you a solution to task 1?