InterviewHubPRO
Section Overview
Q378

Question 378 of 521

Part 6: Async Internals, Memory, Microtasks & Web APIs (329 - 403)

73%
JavaScript Internals (521 Qs)•Part 6: Async Internals, Memory, Microtasks & Web APIs (329 - 403)

Is it possible to debug HTML elements in console

Yes, it is possible to get and debug HTML elements in the console just like inspecting elements.

javascript
  const element = document.getElementsByTagName("body")[0];
  console.log(element);

It prints the HTML element in the console,

Screenshot