DEV Community

Discussion on: Challenge: Write your worst program

Collapse
 
arcticshadow profile image
Cole Diffin

Appearances can be deceiving. On a technicality yes it's still async. However, from a callers perspective, it operates synchronously. The debate on if this is synchronous or non-synchronous was not the point of me posting this code. If you need a reminder, see the OP title.

Thread Thread
 
hrmny profile image
Leah

For the caller the function returns on the setTimeout call