The closures question that trips up almost every React interview
If there's one JavaScript question that shows up in almost every frontend interview in some form, it's this one:
for (var i = 0; i < 3; i++) {
setTimeout(() => console.log(i));
}
What does this log
101beardo.hashnode.dev3 min read