Add asynchronous javascript content (#1676)

pull/1685/head
HS 2 years ago committed by GitHub
parent 84de454794
commit bd967caadd
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
  1. 16
      content/roadmaps/106-javascript/content/112-javascript-asynchronous-javascript/readme.md

@ -1 +1,15 @@
# Javascript asynchronous javascript
# 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.
<ResourceGroupTitle>Free Content</ResourceGroupTitle>
<BadgeLink colorScheme='yellow' badgeText='Read' href='https://developer.mozilla.org/en-US/docs/Learn/JavaScript/Asynchronous/Introducing'>Introducing asynchronous JavaScript
</BadgeLink>

Loading…
Cancel
Save