Question: For the below HTML, write JS code for q14.js that adds the following behavior: a. When the div with id=hello is clicked for the first

 For the below HTML, write JS code for q14.js that adds

For the below HTML, write JS code for q14.js that adds the following behavior: a. When the div with id="hello is clicked for the first time, one new div is added to the page with text that says "hi. b. Each time the div with id="hello is clicked, twice as many divs with text hi are added as the previous click. So the second click will result in 2 new "hi"s, the third will result in 4, etc. Do not modify the HTML code below.

hello there

Step by Step Solution

There are 3 Steps involved in it

1 Expert Approved Answer
Step: 1 Unlock blur-text-image
Question Has Been Solved by an Expert!

Get step-by-step solutions from verified subject matter experts

Step: 2 Unlock
Step: 3 Unlock

Students Have Also Explored These Related Databases Questions!