re: Practical Ways to Write Better JavaScript VIEW POST

re: While a lot of your advice is nice, about map and friends: This directly communicates to the runtime, that the individual "iterations" have no co...

From the article:

JS is single threaded, but not single-file (as in lines at school). Even though it isn't parallel, it's still concurrent. Sending an HTTP request may take seconds or even minutes, if JS stopped executing code until a response came back from the request, the language would be unusable.

I think you might have missed a couple paragraphs. In case this doesn't make sense, read my article about async, concurrency and parallelism.

code of conduct - report abuse