DEV Community

Discussion on: Need Help In Reading Text Files Using JavaScript File Reader API

Collapse
 
simonscholz profile image
SIM • Edited

Hi,

you should read this documentation:
developer.mozilla.org/en-US/docs/L...
and maybe this one: javascript.info/async

The only async behavior of javscript I know / and I use, is:
You can run multiple operations "async" for example if you have 10 http request, you can send them all at "once" and not one after another (with Promise.all).

All I know is that JavaScript is a single threaded language so you can't archive 100% async behavior with it (correct me if I'm wrong).
So If I'm debugging JavaScript code manually (line for line) I'm go througt it as if it wasn't async, even throug Promises or await/async functions.

Simon

Thread Thread
 
sayuj profile image
Sayuj Sehgal

Hey,
Thanks, that helped it😊.