<html>
<body>
<h1>The Window Navigator Object</h1>
<h2>The cookieEnabled Property</h2>
<p id="demo"></p>
<script>
let cookies = navigator.cookieEnabled;
document.getElementById("demo").innerHTML = "Cookies enabled: " + cookies;
</script>
</body>
</html>