JavaScript JavaScript and the DOM Traversing the DOM Parent Traversal

Julian Cubillos
Julian Cubillos
2,060 Points

Don't understand task 2, please help and thanks in advance

const removeMe = document.querySelector();

var parent = .parentNode;

I remove the removeMe

app.js
const removeMe = document.querySelector();

var parent = .parentNode;
index.html
<!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
Steven Parker
172,063 Points

It 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.