What will be the output of the following code snippet? (Based on setTimeout) | JavaScript Quiz

@Yomesh Gupta
for (var i = 0; i < 5; i++) {
  setTimeout(function () {
    console.log(i);
  }, 10);
}
Option 1
01234
Option 2
55555
Option 3
44444
Option 4
None of the above