What's wrong with this code?

It calls div.removeChild() with a tag name, not an elementIt calls div.removeChild() with the wrong IDIt calls div.removeChild() with the wrong elementIt should call document.removeChild()

It calls div.removeChild() with a tag name, not an element.