Question: I cannot figured out why none is showing instead of block! I've messed with this for an hour and always get the same result. Can
I cannot figured out why "none" is showing instead of "block"! I've messed with this for an hour and always get the same result. Can anyone help??
CHALLENGE ACTIVITY 7.5.1: Timers 365144.2027462.qx3zqy7 Jump to level 1 Write a setTimeout() function that reveals the answer after 2.5 seconds. D-D-D- HTML JavaScript 1 function showAnswer { 2 let answerElement = document.getElementsByClassName("answer")[0]; 3 4 answerElement.style.display = "block"; 5} 6 7 setTimeout(function({ 8 /* Your solution goes here */ 9 10 setTimeout(showAnswer, 2500); 11 }) 12 ); 1 2 3 Check Try again X Checking answer's display property before 2.5 seconds. Yours none * Checking answer's display property after 2.5 seconds. Yours and expected differ. See highlights below. Yours none Expected block
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
