JavaScript JavaScript and the DOM Traversing the DOM Parent Traversal

How do I complete task 3 of 3 so I can keep using Treehouse? It's been an hour.

I've tried dozens of different ways of getting the parent node and nothing has worked in one hour +.

const removeMe = document.querySelector('removeMe');
let parent = document.parentNode();
<!DOCTYPE html>
        <title>Parent Traversal</title>
    <link rel="stylesheet" href="style.css" />
            <li class="remove_me">Good bye!</li>
        <script src="app.js"></script>

1 Answer

Hey, First off the query selector is actually ('.remove_me') and I believe you want to change it to: let parent = removeMe.parentNode;

I think that works