BaseMax / PromisesAsynchronousJS

If you are a JS dev, After learning the fundamentals. You have to learn Async, Await, Callbacks and Promises. This repository provide several easy examples which can show you how they are working.

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Promises Asynchronous JS

If you are a JS dev, After learning the fundamentals. You have to learn Async, Await, Callbacks and Promises. This repository provide several easy examples which can show you how they are working.

Topics

  • Async
  • Await
  • Callbacks
  • Promises

Demo

What is Await?

The await operator is used to wait for a Promise. It can only be used inside an async function within regular JavaScript code; however it can be used on its own with JavaScript modules.

What is Async?

An async function is a function declared with the async keyword, and the await keyword is permitted within it. The async and await keywords enable asynchronous, promise-based behavior to be written in a cleaner style, avoiding the need to explicitly configure promise chains.

What is Promises?

Promises are the foundation of asynchronous programming in modern JavaScript. They make it easier to express and reason about sequences of asynchronous operations without deeply nested callbacks, and they support a style of error handling that is similar to the synchronous try... catch statement.

Read more:

About

If you are a JS dev, After learning the fundamentals. You have to learn Async, Await, Callbacks and Promises. This repository provide several easy examples which can show you how they are working.

License:GNU General Public License v3.0


Languages

Language:JavaScript 80.9%Language:HTML 19.1%