Async Communication
Async Communication
Communication
Sandeep G
Who Am I?
● Concurrency in Javascript
● CallBack Function in Javascript
● Callback Hell or Pyramid of Doom
● Promises in Javascript
● Creating a Promise
● then () & Catch() method in Javascript
● Chaining multiple promises
● Promise methods in Javascript
● Async/Await keywords in Javascript
Concurrency In JS
Concurrency in JavaScript
● A function which can accept function as parameter is called higher order function.
HOC
Async Callback
● Nesting many
asynchronous functions
inside callbacks is known
as the pyramid of doom or
the callback hell.
● It is being used when you have multiple independent promises and you want to
execute at once.
Async Await in JS
● Cleaner way to write async function, when you don;t wish to use promises.
● Use catch block to handle errors.
Happy Coding