I read about closures and find this code.
for(i=0;i<5;i++){
setTimeout(function(){
console.log(i);
},2000)
}
This outputs 5 number 5 times after 2 second. I understand this but before five appears there is number above him. And when I execute again this code it changes it adds 5 to his old value. What is it? Write code on console, see what it outputs then explain me what is it?