Javascript Promises, Async, and Await

Опубликовано: 11 Ноябрь 2021
на канале: The Code Learners
61
0

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.


My Website: https://bit.ly/3vIO88y

Source Code Link: https://bit.ly/3bY48vS

---------------------------------------
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
15:39 Promise.all( iterable ) method
18:57 Promise.allSettled( iterable ) method
20:42 Promise.any( iterable ) method
21:55 Promise.resolved( ) method
22:58 Promise.reject( ) method
23:20 Why and When you should use Promise
25:36 When you must not use Promise and prefer callbacks



► Visit My Channel -    / @thecodelearners7589  
► Visit My Channel Playlists -   / @thecodelearners7589  

Other Popular Videos on Javascript

► Implementation and Usage of Decorators in Javascript -    • Implementation and Usage of Decorator...  

► JavaScript find the first occurrence within the array using the array find() method -    • JavaScript find the first occurrence ...  

► JavaScript sorting objects within array on custom object key -    • JavaScript sorting objects within arr...  

► Javascript Multiple Files Preview using createObjectURL and FileReader -    • Javascript Multiple Files Preview usi...  

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

Other Popular Videos on React JS

► How to Switch between Dark Modes in React JS using LocalStorage -    • How to Switch between Dark Modes in R...  

► React JS Form Validation Using Formik useFormik Hook and Yup Package -    • React JS Form Validation Using Formik...  

► How to Import Components using Absolute Imports in React JS -    • How to Import Components using Absolu...  

► Learn to Create a Simple Reusable Tab Component with React JS -    • Learn to Create a Simple Reusable Tab...  

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

Other Popular Videos on Next JS

► How to Import Components using Absolute Imports in Next JS -    • How to Import Components using Absolu...  

► How to add Google Translator to your Next Js Projects -    • How to add Google Translator to your ...  

► NEXT JS Authentication using Laravel Sanctum and Taking care of CORS -    • NEXT JS Authentication using Laravel ...  

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


Other Popular Videos on Laravel

► Solved - Laravel requested URL not found on this server issue. -    • Solved - Laravel requested URL not fo...  

► Solved - Laravel requested URL not found on this server issue. -    • Solved - Laravel requested URL not fo...  

► How to use Multiple Users Authentication Guards and Login Throttling in Laravel -    • How to use Multiple Users Authenticat...  

► How to do Serverside Listing and Filtering using JQuery Datatables in Laravel -    • How to do Serverside Listing and Filt...  

► How to Debug your Laravel Application using Laravel Debugbar -    • How to Debug your Laravel Application...  

► Laravel Create a Custom Form Validation Rule for Beginners -    • Laravel Create a Custom Form Validati...  

► Leverage Potential of Laravel ViewComposer to share data across Multiple Views -    • Leverage Potential of Laravel ViewCom...  


---------------------------------------
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
Artist Youtube Channel Link:    / @patrikiospatrick  


Смотрите видео Javascript Promises, Async, and Await онлайн без регистрации, длительностью часов минут секунд в хорошем качестве. Это видео добавил пользователь The Code Learners 11 Ноябрь 2021, не забудьте поделиться им ссылкой с друзьями и знакомыми, на нашем сайте его посмотрели 61 раз и оно понравилось 0 людям.