▲ 1 r/InterviewsHell
Interview Question Experience
Today in an interview I was asked output of this JS question:
const arr = [1,2,3,4,5,6,7,8,9,10];
for(var i = 0; i < 10; i++){
setTimeout(() => console.log(arr[i]), 0);
}
can you people solve this without cheating or am I the only dumb one here?
u/El_Dorado17 — 6 days ago