<html>
<body>
<h1>The Console Object</h1>
<h2>The assert() Method</h2>
<p>Remember to open the console (Press F12) before you click "Run".</p>
<script>
console.assert(document.getElementById("demo"), "You have no element with ID 'demo'");
</script>
</body>
</html>