![anyone know why setTimeout in this example just waits 600 milliseconds and them logs everything at once instead of logging one then in 600 milliseconds it logs the next? my thinking was anyone know why setTimeout in this example just waits 600 milliseconds and them logs everything at once instead of logging one then in 600 milliseconds it logs the next? my thinking was](https://preview.redd.it/anyone-know-why-settimeout-in-this-example-just-waits-600-v0-vpsicw9hnhr91.png?auto=webp&s=6398f20dd9d6febd411c2c6a935c6d3f89d84ea3)
anyone know why setTimeout in this example just waits 600 milliseconds and them logs everything at once instead of logging one then in 600 milliseconds it logs the next? my thinking was
![reactjs - Why my setTimeout function shows the console part only once after a time span of 10 seconds but after that it prints the console part in 1seconds - Stack Overflow reactjs - Why my setTimeout function shows the console part only once after a time span of 10 seconds but after that it prints the console part in 1seconds - Stack Overflow](https://i.stack.imgur.com/YTrNm.png)
reactjs - Why my setTimeout function shows the console part only once after a time span of 10 seconds but after that it prints the console part in 1seconds - Stack Overflow
![Event loop in javascript. If you love javascript you've need to… | by Manjula Dube | Code Like A Girl Event loop in javascript. If you love javascript you've need to… | by Manjula Dube | Code Like A Girl](https://miro.medium.com/v2/resize:fit:556/1*DqV9afZG9zoUNUZLjvkHjw.png)
Event loop in javascript. If you love javascript you've need to… | by Manjula Dube | Code Like A Girl
![Understanding setTimeout(). setTimeout() can yield unexpected… | by Piyush Kochhar | Level Up Coding Understanding setTimeout(). setTimeout() can yield unexpected… | by Piyush Kochhar | Level Up Coding](https://miro.medium.com/v2/resize:fit:1400/1*8kO6edcQeEak2Nl23QUhvA.png)
Understanding setTimeout(). setTimeout() can yield unexpected… | by Piyush Kochhar | Level Up Coding
![Understanding setTimeout(). setTimeout() can yield unexpected… | by Piyush Kochhar | Level Up Coding Understanding setTimeout(). setTimeout() can yield unexpected… | by Piyush Kochhar | Level Up Coding](https://miro.medium.com/v2/resize:fit:1400/1*lGFOQJA-saE2QzsP3UMxlw.png)