Question 13
Consider the following JavaScript code embedded in the body of the HTML document given below.
<html><body> <div id="mybox">Test JS</div> <script> let count = 0; let change = setInterval(()=>{ let box = document.getElementById('mybox'); if(count % 2 == 1){ box.style.backgroundColor = 'red'; count++; } else if(count % 3 == 1){ box.style.backgroundColor = 'green'; count++ } else{ box.style.backgroundColor = 'yellow'; count++ } }, 1000) </script></body></html>If the document is rendered on the browser, what will be the sequence of background colors taken by the element with id="mybox" in the first 6 seconds of execution?