In this video, we look at how to return a response from an asynchronous call in JavaScript. If you are trying to return a value from your asynchronous function in JavaScript and you are getting undefined as the value then this is the video that you must watch. It covers all the methods that you need to know in order to return a value from an asynchronous call in JavaScript. We compare JavaScript Callbacks vs JavaScript Promises vs Async Await in Javascript and see where to use which pattern to deal with Asynchronous requests in JavaScript.
📖 Video Chapters
00:00 Video Intro
00:19 Difference between asynchronous and synchronous functions
00:32 Understanding synchronous functions
01:48 Understanding asynchronous functions
03:26 Faking an asynchronous call
04:35 Callback Functions Explained
08:01 Promises in JavaScirpt
11:57 Async Await In JavaScript