removeChild

The removeChild() method removes a Element with it's index

Example

document.querySelector("body").removeChild(1)

Last updated