Skip to main content
InterviewHubPRO
Section Overview
Q378

Question 378 of 536

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

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

Is it possible to debug HTML elements in console

senior LevelCode ExampleAsync & PromisesEvent LoopHTTP & REST APIs

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