Heads up! To view this whole video, sign in with your Courses account or enroll in your free 7-day trial. Sign In Enroll
- What is a Promise? 3:36
- Create a Promise 4:43
- Reject a Promise and Handle Errors 3:25
- Promises Review
- Create a Promise Review 6 questions
- From Callbacks to Promises 5:59
- Handle Multiple Promises with Promise.all 3:35
- Before You Continue
- Perform Cleanup With finally() 2:47
- Using Fetch 6:21
- JavaScript Promises Review 6 questions
Well done!
You have completed Asynchronous Programming with JavaScript!

- 2x 2x
- 1.75x 1.75x
- 1.5x 1.5x
- 1.25x 1.25x
- 1.1x 1.1x
- 1x 1x
- 0.75x 0.75x
- 0.5x 0.5x
Learn how to create a promise and get a value out of a fulfilled promise.
Running a JavaScript file with the node
command
If you are not able to run the file promises-breakfast.js
in your Terminal or console using the command node promises-breakfast.js
, you can link the file to index.html
and then test the output in your browser's console:
<body>
...
<script src="js/promises-breakfast.js"></script>
<script src="js/callbacks.js"></script>
</body>
Resources
Related Discussions
Have questions about this video? Start a discussion with the community and Treehouse staff.
Sign up-
David Shulkin
Front End Web Development Techdegree Student 10,255 Points1 Answer
-
Marni Ali
4,642 Points3 Answers
-
karan Badhwar
Web Development Techdegree Graduate 18,135 Points5 Answers
-
karan Badhwar
Web Development Techdegree Graduate 18,135 Points1 Answer
-
Chike Onyema
6,190 Points2 Answers
-
Jesus Olaiz
9,210 Points1 Answer
-
Daniel Ahn
Front End Web Development Techdegree Student 8,575 Points0 Answers
-
Kylie Soderblom
3,890 Points1 Answer
-
Austin Schneider
4,919 Points2 Answers
-
Edelweiss Villoria
4,801 Points1 Answer
-
Rick S
11,273 Points6 Answers
-
Cody Tapp
9,667 Points3 Answers
-
Jasper Kop
10,423 PointsWhy is the text from resolve displayed by the val function?
Posted by Jasper KopJasper Kop
10,423 Points3 Answers
-
Roald Jurrian Kamman
Front End Web Development Techdegree Graduate 15,544 Pointsis val a keyword or is the arrow function pointing at itself? Arrow function syntax looks weird.
1 Answer
-
Daven Hietala
8,040 Points$ node promises-breakfast.js internal/modules/cjs/loader.js:638 throw err; ^
Posted by Daven HietalaDaven Hietala
8,040 Points3 Answers
-
Daven Hietala
8,040 PointsHow do I set up the terminal within VS Code to work like Guil's terminal?
Posted by Daven HietalaDaven Hietala
8,040 Points8 Answers
View all discussions for this video
Related Discussions
Have questions about this video? Start a discussion with the community and Treehouse staff.
Sign up
You need to sign up for Treehouse in order to download course files.
Sign upYou need to sign up for Treehouse in order to set up Workspace
Sign up