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!
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 trial
Ali Sh2,026 Points
code 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>
Adam Beer11,314 Points
Hi Ali. Use children property. "ParentNode.children". So let pharagraphs equal to "ParentNode.children"
Martin Lecke14,384 Points
Actually there might be a bug with the challenge, i cant get passed "Check work" either. You should report it