Answered step by step
Verified Expert Solution
Question
1 Approved Answer
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 blockStep by Step Solution
There are 3 Steps involved in it
Step: 1
Get Instant Access to Expert-Tailored Solutions
See step-by-step solutions with expert insights and AI powered tools for academic success
Step: 2
Step: 3
Ace Your Homework with AI
Get the answers you need in no time with our AI-driven, step-by-step assistance
Get Started