javascript-tutorial / javascript-tutorial/en.javascript.info

The explanation on how asynchronous javascript works should be more in-depth

Open
#3,091 0 comments 1 reaction 0 assignees View on GitHub

Nobody has claimed this yet.

Dominant language
HTML
Stars
25.5k
Forks
4k
PR merge metrics
No merged PRs in 30d

Description

Asynchronous javascript and the event loop are probably some of the most important topics to learn when delving into the more complex aspects of javascript. However, for some reason, 90% of tutorials and such that you can find online are extremely shallow about this topic, if not completely misleading. I don't think this one is misleading, but it's definitely shallow, which is a pity considering that about 90% of javascript.info is great and super in-depth. I think you should explain more thoroughly and with more visual exaples how the runtime environment works (the engine, the web APIs, macro-task and micro-task queue), how calls to web APIs use separate threads (preferably with examples, like what happens in the event loop and runtime environment when i use fetch?), how exactly async/await works (the function's execution is synchronous until the first await, and then it basically acts as if the remaining code in the function exists in a .then callback) and so on. I feel like if someone can do it, it's you guys, i have faith in you.

Contributor guide

No contributing guide indexed for this repository

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

Research direction

Start by locating the tutorial section on asynchronous JavaScript and the event loop; no file or test is named in the issue. Review the existing explanation, then plan deeper coverage of runtime environments, queues, web APIs, fetch, and async/await with visual examples. Done means the section thoroughly explains the requested topics without remaining shallow.

Written by the indexing model from the issue text.

Assessment

Tech stack
javascript
Domain
documentation
Issue type
Documentation
Difficulty
5/5
Estimated time
Over a week
Activity status
Stale
Clarity
Mostly clear
Newbie friendliness
35/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.