<html>
<body>
<h1>The Window Object</h1>
<h2 id="test" style="background-color:lightblue">The getComputedStyle() Method</h2>
<p>The computed background color for the test div is:</p>
<p id="demo"></p>
<script>
const element = document.getElementById("test");
const cssObj = window.getComputedStyle(element, null);
let bgColor = cssObj.getPropertyValue("background-color");
document.getElementById("demo").innerHTML = bgColor;
</script>
</body>
</html>