Browser DevTools (F12 or Inspect) include Elements, Console, Network, and Sources—essential for front-end debugging.
Console API
console.log— general outputconsole.warn/console.error— severity levelsconsole.table— tabular objectsconsole.time/timeEnd— simple benchmarks
Elements panel
Inspect live DOM, tweak CSS live, see box model—pairs with lessons from the CSS track.
Important interview questions and answers
- Q: Console vs printOutput here?
A: printOutput is this site's panel; console also appears in DevTools when using a real browser tab. - Q: Network tab use?
A: Inspect fetch requests, status codes, and payloads.
Self-check
- Name three console methods.
- What does Elements panel show?
Tip: Re-run the playground code for devtools-console and tweak one line before the MCQs.
Interview prep
- Network tab?
Inspect HTTP requests and responses.