/** * We can use console.log to log HTML elements */ console.log(document.body); //Output: <body class="a b c">...</body> /** * We can use console.dir to log HTML elements. * But insted of HTML console.dir will log * interactive list of the properties of the specified JavaScript object */ console.dir(document.body); /** * Output: body.a.b.c * aLink: "" * accessKey: "" * ariaAtomic: "" * ................................ */