<!DOCTYPE html>
<html>
<body>
<h1>JavaScript removeChild() Method</h1>
<ul id="lang">
<li>HTML</li>
<li>CSS</li>
<li>JavaScript</li>
</ul>
<script>
let lang = document.getElementById('lang');
lang.removeChild(lang.lastElementChild);
</script>
</body>
</html>