DEV Community

Discussion on: JavaScript Interview Question #39: How does setTimeout work inside the loop?

Collapse
 
elijahe35939317 profile image
ElijahE

What's the implication on performance?

Collapse
 
coderslang profile image
Coderslang: Become a Software Engineer

The question here isn't as much about performance, it's about properly understanding the way asynchronous operations work in JS.

Collapse
 
coderslang profile image
Coderslang: Become a Software Engineer

JavaScript is async by design. There are no immediate problems with it if applied correctly.