Have you been in a situation where you need your JavaScript to WAIT until some other code has finished? Or maybe you need a value and it's being set at a weird time and you have no idea why? Enter JavaScript promises... the answer you've been looking for :) Added in 2015, they are an absolutely essential part of modern JavaScript and can transform how you code for the better. This is part 1, covering the basics of why they are necessary and how they work. Subscribe and check out follow up videos for async/await, and other key elements!
Callback video: • What is a JavaScript Callback Anyway?
ECMAScript playlist: • EcmaScript Updates
History of ECMAScript/JavaScript (long) - • Visual Timeline of JavaScript and ECM...
History of ECMAScript/JavaScript (shorter) - • Visual Timeline of JavaScript and ECM... y
The JavaScript event loop: • Making Sense Of The JavaScript Event ...
0:00 - Intro
1:00 - Why: Life Before Promises
5:33 - Promises Arrive in 2015
7:00 - How They Work
8:06 - Code Editor - Basic Example
9:03 - Resolve and Reject
11:00 - The then method!
Watch video Transform Your JavaScript with Promises online without registration, duration hours minute second in high quality. This video was added by user Good Morning Developers 21 May 2024, don't forget to share it with your friends and acquaintances, it has been viewed on our site 408 once and liked it 31 people.