Hapus tag terakhir di dom javascript
<ul id="menu">
<li>Home</li>
<li>Products</li>
<li>About Us</li>
</ul>
let menu = document.getElementById('menu');
menu.removeChild(menu.lastElementChild);
Salsabeel woh woh