Files
developer-roadmap/content/roadmaps/106-javascript/content/112-javascript-asynchronous-javascript
Akash Kishore MukhiaandKamran Ahmed b978f8d48f Added video resource(Youtube video) for event loop. (#2286)
* Added video resource(youtube) for event loop.

* Update content/roadmaps/106-javascript/content/112-javascript-asynchronous-javascript/100-event-loop.md

Co-authored-by: Kamran Ahmed <kamranahmed.se@gmail.com>
2022-10-12 16:22:25 +04:00
..

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