• The Promise object represents the eventual completion (or failure) of an asynchronous operation and its resulting value. In other words
  • Dive into the world of promises in JavaScript, exploring their lifecycle, how to chain them, and the advantages of using async/await for cleaner code.
  • Kelime ve terimleri çevir ve farklı aksanlarda sesli dinleme. promise söz keep your promise sözünü tutmak promise söz vermek ne demek.
  • The Promise object represents the eventual completion (or failure) of an asynchronous operation and its resulting value.
  • JavaScript Promise, eşzamansız bir işlemin sonucunu elde etmek için, bu sonuç anında elde edilemediğinde kullanılabilen bir nesnedir.
  • new Promise'e gönderilen fonksiyona çalıştırıcı. Promise üretildiğinde, bu çalıştırıcı otomatik olarak başlar. Bu üretici kodu kapsar, sonrasında sonuç üretilir.
  • 2 milyon görüntüleme
    Yayınlandı17 Oca 2019
  • JavaScript Promise Examples. To demonstrate the use of promises, we will use the callback examples from the previous chapter: Waiting for a Timeout.
  • Terminology
    • promise” is an object or function with a then method whose behavior conforms to this
    • “value” is any legal JavaScript value (including undefined, a thenable, or a promise).
  • Promise oluşturduktan sonra onu gerçekten kullanmamız gerekir. Promise-ified işlevini yürütmek için, bunu herhangi bir normal işlev gibi çağırabiliriz.