<html>
<body>
<h1>The Console Object</h1>
<h2>The log() Method</h2>
<p>Remember to open the console (Press F12) before you click "Run".</p>
<p>How to display an object in the console.</p>
<script>
const myObj = {firsname:"John", lastname:"Doe"};
console.log(myObj);
</script>
</body>
<!-- Mirrored from www.w3schools.com/jsref/tryit.asp?filename=tryjsref_console_log2 by HTTrack Website Copier/3.x [XR&CO'2014], Wed, 21 Dec 2022 17:39:29 GMT -->
</html>