References

See all of my references site, link, tool, app.

DevHints.io - TL;DR for developer documentation

Rico's cheatsheets

What Color is Your Function?

Read a blog post from Bob Nystrom, in which he compares async and sync function, respectively red and blue.

What Color is Your Function?

red.ts
async function red() {
  await something();
}

// calling

try {
  await red();
} catch (err: Error) {
  console.error(err);
}
blue.ts
function blue() {
  something();
}

// calling

blue();

JavaScript Visualized - Event Loop, Web APIs, (Micro)task Queue