This JavaScript interview question confuses many developers. In the previous video, we saw why this code prints: 3 3 3 ❌ Now in this reel, we fix it using `let`. 👉 `let` is block scoped 👉 A new value of `i` is created for every loop iteration 👉 That’s why setTimeout prints: 0 1 2 ✅ This question is asked to test: ✔ JavaScript scoping ✔ Closures ✔ Event Loop basics 📌 Follow for more JavaScript interview questions. #JavaScript #JSInterview #JavaScriptShorts #JSReels #WebDevelopment #FrontendDeveloper #ReactDeveloper #CodingReels #ProgrammingTips #InterviewQuestions #JavaScriptTricks #LearnJavaScript