Debug Reference
Use the debugger for paused state, the console for quick observations, and the network panel for requests. Choose the tool that shows the failing step.
Where to run this
This example uses the JavaScript console playground. Select Run to execute it; the example does not run on this lesson page.
A practical example
const readings = [2, 4, 6];
console.log(readings.map((value, index) => ({index, value})));
What happens
Each reading is paired with its position for inspection.