computer-scienceangular-roadmapbackend-roadmapblockchain-roadmapdba-roadmapdeveloper-roadmapdevops-roadmapfrontend-roadmapgo-roadmaphactoberfestjava-roadmapjavascript-roadmapnodejs-roadmappython-roadmapqa-roadmapreact-roadmaproadmapstudy-planvue-roadmapweb3-roadmap
You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
shubham patil
1ad1faa7b4
|
2 years ago | |
---|---|---|
.. | ||
103-callbacks | 2 years ago | |
104-promises | 2 years ago | |
100-event-loop.md | 2 years ago | |
101-set-timeout.md | 2 years ago | |
102-set-interval.md | 2 years ago | |
readme.md | 2 years ago |
readme.md
Asynchronous JavaScript
Asynchronous programming is a technique that enables your program to start a potentially long-running task and still be able to be responsive to other events while that task runs, rather than having to wait until that task has finished. Once that task has finished, your program is presented with the result.
Many functions provided by browsers, especially the most interesting ones, can potentially take a long time, and therefore, are asynchronous. For example:
- Making HTTP requests using
fetch()
- Accessing a user's camera or microphone using
getUserMedia()
- Asking a user to select files using
showOpenFilePicker()
So even though you may not have to implement your own asynchronous functions very often, you are very likely to need to use them correctly.
Free Content Introducing asynchronous JavaScript