Skip to content

Instantly share code, notes, and snippets.

@desoga10
Created May 5, 2019 20:27
<body>
<div>
<ul>
<li>First on the list</li>
<li>Second on the list</li>
<li>third on the list</li>
</ul>
</div>
<script>
let parentElem = document.querySelector('ul');
let childElem = document.querySelector('li');
parentElem.removeChild(childElem);
</script>
</body>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment