Practice & Assessment
Test your understanding of The Debugging Mindset
Multiple Choice Questions
5You change two things simultaneously and the bug disappears. What is the correct next step?
A bug appears in production but you cannot reproduce it locally. What is the FIRST action to take?
In a JavaScript stack trace, where should you look first for the bug?
Which of these is a properly formed debugging hypothesis?
What does a TypeError in JavaScript most directly indicate?
Coding Challenges
1Write a Minimal Reproducible Example
Given the following broken function that processes a shopping cart array and crashes intermittently, isolate the bug into the smallest possible self-contained code snippet that reproduces the failure every time. Input: an array of cart items where some items have a missing price property. Output: a minimal code block (under 10 lines) that always throws the same error, plus one sentence naming the fault. Time estimate: 20 minutes.
Mini Project
Personal Bug Investigation Template
Build a plain-text or markdown debugging journal template that includes: a symptom capture section, a hypothesis table with columns for hypothesis, test, result, and status, a reproduction checklist covering environment, inputs, and steps, a time-box log, and a root cause summary field. Populate it with a real or invented bug scenario, filling every section with at least one entry. The template must be reusable for any future bug.
