Skip to content

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

Notifications You must be signed in to change notification settings

BaseMax/PromisesAsynchronousJS

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

12 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

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.

Topics

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published