JavaScript
Choose a question track. Theory builds the concepts; debugging applies them to code and real problems.
Code-focused scenarios that ask you to diagnose behavior and choose a practical fix.
JavaScriptยท Debugging & Problem SolvingSenior
Question 1 of 4
Scenario
A teammate is debugging why a loading flag flickers. You narrow it down to this ordering question.Code
js
console.log("A");
setTimeout(() => console.log("B"), 0);
Promise.resolve().then(() => console.log("C"));
console.log("D");