Question #23

Author: admin
tags: JavaScript  
let x;
for (let i = 0; i < 10; i++) {
  x = i;
  setTimeout(console.log, 100, x);
  setTimeout(function() { console.log(x); }, 200);
  setTimeout(function() { console.log(i); }, 300);
}
What will the console output be?
First from 0 to 9, then from 0 to 9, then from 0 to 9.
First from 0 to 9, then from 0 to 9, then from 9 to 9.
First from 0 to 9, then from 9 to 9, then from 0 to 9.
First from 0 to 9, then from 9 to 9, then from 9 to 9.
First from 9 to 9, then from 0 to 9, then from 0 to 9.
First from 9 to 9, then from 0 to 9, then from 9 to 9.
First from 9 to 9, then from 9 to 9, then from 0 to 9.
First from 9 to 9, then from 9 to 9, then from 9 to 9.
There will be an error
Rate the difficulty of the question:
easyhard