You can create a scope for each iteration and deal with this problem. A simple example can be like this :
for (var i =0; i<10 ; i++){
(function(j){
$.get('https://stackoverflow.com',function(){
console.log("I am from callback with the value of j ",j);
})
})(i);
}
Updated the code sample with passing arguments to IIFE.