<!DOCTYPE html>
<html>
<body>
<h1>The Window Screen Object</h1>
<h2>The colorDepth Property</h2>
<p id="demo"></p>
<script>
let depth = screen.colorDepth;
document.getElementById("demo").innerHTML = depth + " bits per pixel";
</script>
</body>
</html>