I found script to change background color every second, but I don't understand how it works. Can somebody tell me how it works? : <pre><code>&lt;script&gt;
var myVar = setInterval(function(){setColor()},1000);
function setColor(){
var x = document.body;
x.style.backgroundColor = x.style.backgroundColor == "yellow"?"pink":"yellow";
}
&lt;/script&gt;
</code></pre>

<p>I don't understand in this part:<br>
<code>x.style.backgroundColor == "yellow"?"pink":"yellow";</code><br>
I try to add some color like this:<br>
<code>x.style.backgroundColor == "yellow"?"pink":"blue":"yellow";</code><br>
but the script doesn't work.</p>
