Javascript Promises, Async, and Await

preview_player
Показать описание
Javascript Promises, Async, and Await

A Promise is a special object which was introduced by ECMAScript in 2015.

Promises work on the concept of sticking to a commitment of providing needed data whenever requested by the consumer during further program execution.
If the commitment to provide data fails it returns it status as rejected and returns fulfilled if the data is properly returned.

The promises by default are executed asynchronously and reside in memory till they are processed by the CPU. The promise is the most useful and frequently used feature within Javascript.
If you take a look at Javascript libraries like React JS, the state functions are asynchronous and use promises to update the values.

---------------------------------------
Video Timeline
---------------------------------------
00:08 What is a Promise?
00:48 Create a Simple Promise
01:50 Access data returned by a Promise
02:30 Chain multiple then methods from Promise
06:00 Rejecting a Promise
06:50 Catch exception thrown by a Promise
07:24 Pass parameters to Promise object
10:31 What is async?
11:58 Get data from promise using await
13:07 Working with multiple promise objects
23:20 Why and When you should use Promise
25:36 When you must not use Promise and prefer callbacks

Other Popular Videos on Javascript

-----------------------------------------------------

Other Popular Videos on React JS

-----------------------------------------------------

Other Popular Videos on Next JS

-----------------------------------------------------

Other Popular Videos on Laravel

---------------------------------------
Youtube Music Audio Library
---------------------------------------
All the background music rights and backgroud music credit belongs to below artist and youtube channel
Track Title: Glacier
Genre: Ambient
Artist: Patrick Patrikios
Рекомендации по теме