Wait for loop

Report a typo

Without using any IDE or developer tools, try to visualize the below code and find what will be its output. Make sure to write the output in a single line separated by a single space.

for (let number = 5; number < 9; number++) {
  setTimeout(() => console.log(number), 1);
}
Enter a short text
___

Create a free account to access the full topic