I\'m trying to make a webpage change the background color every one second using JavaScript. I\'m using setTimeout but I can\'t figure out how to get my variabl
setTimeout
Your code is missing the closing tag and other issues mentioned above.
Find below a fix of your code that removes the global variable.