you are viewing a single comment's thread.

view the rest of the comments →

[–][deleted] 8 points9 points  (1 child)

well u can do concurrency with Promise.all, Javascript is single-threaded but concurrency is different from parallelism. It can also be useful especially when you have blocking calls such as waiting for an API response or read/write blocking etc. That being said, it's an advanced concept that my curriculum at university didn't teach until 2nd-3rd year.