Learn JavaScript 068: Async/Await & Try/Catch Tutorial
Code Kaizen
0:00 / 0:00
Learn JavaScript 068: Async/Await & Try/Catch Tutorial
20 просмотров · 5 дней назад
Code Kaizen
14 подписчиков
20 просмотров · 5 дней назад
Welcome back to the Complete JavaScript Course! You survived Callback Hell and learned how to chain Promises. Now, you get your reward. It is time to learn the ultimate magic trick: writing Asynchronous code that looks exactly like Synchronous code.
In this video, we rebuild our bulky .then() chains using the sleek ES8 async/await syntax. I will prove to you that await doesn't actually freeze your browser, but creates a localized pause so you can write clean, top-to-bottom code. We will also learn how to handle errors using standard try/catch blocks, and I will reveal the massive secret of the async keyword that trips up every Junior Developer: it always returns a Promise!
#JavaScript #WebDevelopment #AsyncAwait #LearnToCode #SoftwareEngineering #FrontendDevelopment #BackendDevelopment #CodingTutorial