So when you type "color"(the variable) after this code entry in the console.log, it will change the background color accordingly to the color specified after assigning(=) it as a string(" " or ' ') inside the variable. And the background will change color in confirmation if it was done correctly(written as a string and right spelling inside the variable color), if it's a hexadecimal with the "#"(symbol in front) and also followed by six numbers or letters (or both mixed together should work too), just note that the letters accepted as hex are: A,B,C,D,E,F (or alternatively a, b, c, d, e, f). Certify that if the color is not hex, it must have the name among the 140 colors supported by modern browsers, for example:gray,purple,black.
var color;
setInterval(function(){if (color){document.body.style.backgroundColor=color};},100);