Unlimited Plugins, WordPress themes, videos & courses! Unlimited asset downloads! From $16.50/m

Next lesson playing in 5 seconds

Cancel

Free Preview: Using JavaScript Promises

Introduction

00:38
  • Overview
  • Transcript

Using JavaScript promises is a way to improve your asynchronous code readability by moving away from nesting callbacks. Now that promises have come to plain JavaScript, we can use them natively with no third-party libraries. Using promises is sure to improve the flow of your code.

In this Coffee Break Course, designed to teach a new skill or concept in a single sitting, Envato Tuts+ instructor Reggie Dawson will show you how to use promises for asynchronous JavaScript. He will build two small examples to demonstrate how we can use promises.

We've built a comprehensive guide to help you learn JavaScript, whether you're just getting started as a web developer or you want to explore more advanced topics:

1. Using JavaScript Promises

1.1 Introduction

[SOUND] >> Hello. I am Reggie Dawson. In this course I will show you how to use JavaScript Promises. You may have heard of JavaScript Promises but don't know exactly what they are. if you have used any major framework, you have probably seen Promise based methods in action. In this course, I will try to demystify promises so you can make some sense of them. After that maybe you can make use of them in your code. We will learn how to create promises, and then how to resolve or reject them, then we will see how changing promises alters our promises or return. I am sure that after viewing this course you will find a way to use promises in your projects.