Skip Navigation

Predict the output of the following javascript code

app.withcodeexample.com Predict the output of the following javascript code - 04hivg0osqsqo8ppto

In this code, a `for` loop is used to create three instances of a `setTimeout` function. Each instance logs the value of `i` after a delay of 100 millisecond...

Predict the output of the following javascript code - 04hivg0osqsqo8ppto
1