Monthly Archives: August 2021
async Functions in for loop
Now this interview question is very popular: The result of this code is ten times repeated 10. The value of i in each function callback is window.i, because var creates global variable. This moment is not obvious on my opinion: for(var i… is is nothing different than var i. So, how to save value of […]