I want to run myCustomFunction
inside "Console of Google Chrome" with 1 second delay on each loop.
Tried setInterval
but no avail as no execution delay was observed inside Console of Google Chrome.
const myCustomFunction = i => console.log('iteration test number', i);
for (let i = 0; i < 11; i++) {
setInterval(myCustomFunction(i), 1000);
};
- I expect Google Chrome's Console to delay 1 second (or more) for each iteration before running
myCustomFunction
. - I need this to work inside the Console of Google Chrome, not module in 'fileName.js'