<html>
<body>
<h1>JavaScript console.assert() Method</h1>
<p>Press F12 on your keyboard to see the message in the console view.</p>
<p>This example demonstrates how an object is displayed when using the console.assert method.</p>
<script>
var myObj = { firsname : "John", lastname : "Doe" };
console.assert(document.getElementById("demo"), myObj);
</script>
</body>
<!-- Mirrored from www.w3schools.com/jsref/tryit.asp?filename=tryjsref_console_assert2 by HTTrack Website Copier/3.x [XR&CO'2014], Wed, 05 Jun 2019 14:03:13 GMT -->
</html>