17th Nov 2021, 9:06 PM
Margaret Guzman
Margaret Guzman - avatar
3 Respuestas
+ 8
Make sure to change the () missing function Lisa just shared in all of your setTimeout s (to avoid errors in rest of them) Like... line 14, 18, 22 and 26
17th Nov 2021, 9:43 PM
Shivani 📚✍
Shivani 📚✍ - avatar
+ 4
The () are missing in the functions inside the timeouts, e.g. is should be: setTimeout(function(){one.style.backgroundColor = "red"}, 500);
17th Nov 2021, 9:26 PM
Lisa
Lisa - avatar
+ 4
Apart from the above, remove this and it should work, or wrap in onload()☺️: onload = () => { var one = document.getElementById("one"); var two = document.getElementById("two"); var three = document.getElementById("three"); var four = document.getElementById("four"); var res = document.getElementById("res"); }
17th Nov 2021, 10:46 PM
Solo
Solo - avatar