Challenge: Destroy the Button

This challenge will test your skills in implementing DOM related functions to destroy and create new buttons.

We'll cover the following

Problem statement #

In this problem, you are given an HTML file that creates a button element. Your task is to implement a JavaScript code that destroys this button when you click on it but creates two new buttons in place of it.

Level up your interview prep. Join Educative to access 70+ hands-on prep courses.