I am trying to execute a for every certain time to use it in javascript F12 console. How do i do that?
setTimeout(function(){
     window.location.reload(1); //used for something
     for (i = 0; i < 10; i++) {
         /*some code (I dont want this part to execute all at once but every certain 
         time so i can see what is going on)*/
     }
}, 500);
 
    