Ask your AI Ask your AI to turn this code into a guided bug-finding exercise.
Claude ChatGPT I am reading "What does a 20 ms setTimeout delay guarantee?" on CodeWiki (https://codewiki.com/practice/mcq/javascript/event-loop/timer-delay-contract/).
Context (verbatim from the page):
"""
What does a 20 ms setTimeout delay guarantee?
The callback cannot become eligible before the threshold, but it may run later.
The callback begins exactly 20 ms after registration.
The callback interrupts any JavaScript currently on the stack after 20 ms.
"""
Introduce three subtle bugs into the example above and let me find them. Reveal each answer only after I have guessed.
Answer in English. Keep code examples in JavaScript. Where you are unsure, say so.