javascript remove last child element

Solutions on MaxInterview for javascript remove last child element by the best coders in the world

showing results for - "javascript remove last child element"
Tim
01 Jul 2019
1function remove_last_child() {
2  var select = document.getElementById('parent_element');
3  select.removeChild(select.lastChild);
4}