Get your own website Result Size: 625 x 565
x
 
<!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>