Create a Javascript Promise, freeCodeCamp's ES6 Challenges on freeCodeCamp

Channel:
Subscribers:
8,020
Published on ● Video Link: https://www.youtube.com/watch?v=3IFM8Uh3aqA



Duration: 2:40
184 views
1


In this lesson, we take a look at promises in javascript. Javascript promises allow us to run code, once a task completes. In other words, it is fulfilling a promise. We use promises when we want to execute code if a task completes and if there is an error, to reject the promise from completing and throw an error. In this lesson, we look at the basic syntax for setting up a new promise. We do this using the new Promise keywords which constructs a new promise for us. Many times, promises are used when waiting for some response from a server. For example, if we make a request to GET information from the server, a promise will wait for the response which will either be successful or be rejected.




Other Videos By We Will Code


2020-01-06Find More Than the First Match, freeCodeCamp's Regexes Tutor, Regular Expression Help 2020
2020-01-04Extract Matches Using Regex, freeCodeCamp Regular Expression Help, Learn Regexes
2020-01-03Ignore Case While Matching, Regular Expressions with JS 2020 Tutorial
2020-01-03Match a Literal String with Different Possibilities, Learn Regexes on freeCodeCamp, Understanding JS
2020-01-02Match Literal Strings, Learn Regular Expressions on freeCodeCamp 2020, Learn JS for Beginners 2020
2019-12-31Regular Expressions, Using the Test Method, freeCodeCamp's Learn Regex Challenges, 2020 Learn Regex
2019-12-31Introduction to the Regular Expression Challenges, A Regex Tutorial for Beginners, Learn Regex 2020
2019-12-30Handle a Rejected Promise with catch, Learn ES6 on freeCodeCamp 2020
2019-12-26Handle a Fulfilled Promise with then, freeCodeCamp's ES6 Challenges
2019-12-23Complete a Promise with resolve and reject, freeCodeCamp's Learn ES6 Challenges
2019-12-22Create a Javascript Promise, freeCodeCamp's ES6 Challenges on freeCodeCamp
2019-12-22Import a Default Export, freeCodeCamp's ES6 Lessons and Explanations
2019-12-21Create an Export Fallback with export default, freeCodeCamp's ES6 JS Syntax
2019-12-21Use * to Import Everything from a File, freeCodeCamp
2019-12-21Reuse Javascript Code Using import, freeCodeCamp's ES6 Challenges, Javascript Help 2020
2019-12-20Use export to Share a Code Block, ES6 Challenges freeCodeCamp, WebDev Tutorials
2019-12-18Create a Module Script, Learn JS ES6 Syntax on freeCodeCamp, Learn to Code Free Online Tutorial
2019-12-17Use getters and setters to Control Access to an Object, freeCodeCamp's Learn ES6 Syntax Challenges
2019-12-03Use class Syntax to Define a Constructor Function, ES6 tutorial, Learn ES6 Syntax
2019-12-02Write Concise Declarative Functions with ES6, Learn ES6 Syntax
2019-11-29Write Concise Object Literal Declarations Using Object



Tags:
javascript promises
js es6 promises
promises in js
promises in javascript
learning js promises