Sobes.tech
Junior — Senior

Determine which output will appear in the console for code #103

livecode

Task condition

Specify what the output will be in the console after executing the following JavaScript code snippet:

for (var i = []; i.length < 3; i.push(2)) {
  setTimeout(() => {
    console.log(i);
  }, i.length * 1000);
}