What does the .removeChild() instruction do?

It removes a nested element from its parentIt appends a new element to its parentIt removes all child elements of a parent

It removes a nested element from its parent.