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.
484
u/tdammers Jun 19 '22
So, learn all about threads and concurrency before tackling your first programming language. Gotcha.