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 trialJulian Cubillos
2,060 PointsDon't understand task 2, please help and thanks in advance
const removeMe = document.querySelector();
var parent = .parentNode;
I remove the removeMe
const removeMe = document.querySelector();
var parent = .parentNode;
<!DOCTYPE html>
<html>
<head>
<title>Parent Traversal</title>
</head>
<link rel="stylesheet" href="style.css" />
<body>
<ul>
<li>Hello</li>
<li>Hi</li>
<li class="remove_me">Good bye!</li>
<li>Howdy</li>
</ul>
<script src="app.js"></script>
</body>
</html>
1 Answer
Steven Parker
231,269 PointsIt doesn't look like you completed task 1 yet.
Or did you modify the code after task 1? You don't want to do that, you'll need to keep everything you had in task 1 and then add to it for task 2.