Intermediate
Logic Error Debugging Guide
Provide a step-by-step guide to finding logic errors in JavaScript code.
📝 Prompt Content
I am experiencing a logic error in a JavaScript function where the return value is undefined instead of the expected object. Provide a checklist of 5 specific steps I should take to isolate and fix this bug, focusing on variable scope and asynchronous timing issues.