DEV Community

Discussion on: 3 topics in 1 JavaScript interview question

Collapse
 
carlfoster profile image
Carl

Will this guarantee that it emits 0,1,2? Since setTimeout() is async, I don't think it guarantees execution order.