Yash Kumar
Yash Kumar @Yashrahadve05 ·
🔥JS Quiz: Classic loop + setTimeout trap! What logs after 1s? for (var i = 0; i < 3; i++) { setTimeout(function () { console.log(i); }, 1000); } A) 0 1 2 B) 1 2 3 C) 3 3 3 D) 0 0 0 Reply your answer 👇 Why? Answer in thread tomorrow! #JavaScript #CodingQuiz #WebDe2e
1
2
46