Question: Write a setTimeout function that changes the font size of the h2 tag to 36 after waitTime. var h2Element = document.getElementsByTagName(h2)[0]; var waitTime = 300;

Write a setTimeout function that changes the font size of the h2 tag to 36 after waitTime.

var h2Element = document.getElementsByTagName("h2")[0]; var waitTime = 300; setTimeout(function hello() { document.getElementsByTagName("h2").style.fontSize = "36px" }, 30000);

/* Your solution goes here */

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!