Open links in new tab
  1. Promise - The Modern JavaScript Tutorial

    Dec 11, 2024 · A promise is a special JavaScript object that links the “producing code” and the “consuming code” together. In terms of our analogy: this is the “subscription list”.

  2. Promise API - The Modern JavaScript Tutorial

    Feb 20, 2022 · Promise.all(promises) – waits for all promises to resolve and returns an array of their results. If any of the given promises rejects, it becomes the error of Promise.all, and all other results …

  3. Promises, async/await - The Modern JavaScript Tutorial

    Promises, async/await Introduction: callbacks Promise Promises chaining Error handling with promises Promise API Promisification Microtasks Async/await Ctrl + ← Ctrl + →

  4. The Modern JavaScript Tutorial

    2 days ago · Modern JavaScript Tutorial: simple, but detailed explanations with examples and tasks, including: closures, document and events, object oriented programming and more.

  5. Async/await - The Modern JavaScript Tutorial

    Mar 24, 2025 · The word “async” before a function means one simple thing: a function always returns a promise. Other values are wrapped in a resolved promise automatically. For instance, this function …

  6. Promises chaining - The Modern JavaScript Tutorial

    Apr 6, 2023 · What is the point of chaining promises unless returning a new promise (as explained in the Returning promises paragraph)? What I mean is, why would you handle a promise that calculates a …

  7. Promise - JavaScript

    Nov 3, 2024 · 许多函数可能都需要这个结果。 这些就是“粉丝”。 Promise 是将“生产者代码”和“消费者代码”连接在一起的一个特殊的 JavaScript 对象。 用我们的类比来说:这就是就像是“订阅列表”。

  8. Error handling with promises - The Modern JavaScript Tutorial

    Jun 18, 2022 · Error handling with promises Promise chains are great at error handling. When a promise rejects, the control jumps to the closest rejection handler. That’s very convenient in practice. For …

  9. Il tutorial JavaScript moderno

    Impareremo JavaScript, iniziando dalle basi e passando a concetti avanzati come OOP. Ci concentreremo principalmente sul linguaggio, con un minimo di annotazioni riguardo gli ambienti di …

  10. Introduction: callbacks - The Modern JavaScript Tutorial

    Jun 18, 2022 · To demonstrate the use of callbacks, promises and other abstract concepts, we’ll be using some browser methods: specifically, loading scripts and performing simple document …