Skip to main content
Journey Uncommon Logo
JourneyUncommon
mediumJavaScriptlet const var and scopeSingle-choice MCQ2,073 views

What does the following code log?

for (var i = 0; i < 3; i++) { setTimeout(() => console.log(i), 100); }