Async JavaScript for Pythonistas (Fast Track) Quiz

Interactive Quiz ⋅ 10 Questions
By Stephen Gruppetta

In this quiz, you’ll test your understanding of Async JavaScript for Pythonistas.

By working through this quiz, you’ll revisit how asyncio code ports to JavaScript: async function without asyncio.run(), calls that start their work before you await them, awaiting in a loop instead of in .map() or .forEach(), Promise.all() and Promise.allSettled() in place of gather(), timeouts that stop waiting but not working, and a handler on every promise by the time it can fail.

Most questions show a short snippet and ask what it does in JavaScript, where a Python habit would lead you to expect something else. Good luck!

The quiz contains 10 questions and there is no time limit. You’ll get 1 point for each correct answer. At the end of the quiz, you’ll receive a total score. The maximum score is 100%. Good luck!

Related Resources

A developer reads a checklist beside a machine where three kiosk screens drop tokens into an AWAIT clock, with PROMISE envelopes on a conveyor, an ASYNC slot, an ALL tray and a RACE lever.

Course

Async JavaScript for Pythonistas (Fast Track)

Port a library's asyncio holds check to JavaScript in this faster version, and learn async functions, the promises behind await, Promise.all(), timeouts, and retries.

intermediate js py