Learning JavaScript Promises

Take your first steps into the world of JavaScript Promises to effortlessly code in an asynchronous environment

Overview

Promises—if you’ve ever coded an AJAX call, chances are you used them. But did you know they can be used to avoid race conditions, or that you can combine them into complex flows, and ultimately that they can make coding in asynchronous environments a breeze? Learning JavaScript Promises: Practical Applications in ES6 and AngularJS will help you learn all this and more.

This On-Demand course starts with the basics of resolving and rejecting Promises, we will gradually move on to controlling flows by redirecting outcomes, making failures into successes, and vice versa, and modifying data to make it ready for display. Once you have familiarized yourself with Promises, we will review the many awesome ways of combining Promises, such as waiting for all tasks or grabbing the first task to complete. Finally, we will ensure that you fully master Promises with a section on extra Promises that will provide further useful information and examples.

This On-Demand course will not only make you feel comfortable utilizing Promises when they are provided, but will also make you appreciate how much easier they can make your programming in the future.

 Who should take this course

This course is for developers who have a basic understanding of JavaScript and of AngularJS. Knowledge of the difference between Controllers and Services will be of use. Familiarity with JavaScript callbacks and function binding would be a bonus but is not a must. 

 What you will learn from this course 

  •  Create your own Promises to handle asynchronous processes 
  •  Decide the fate of a process: either as a success or a failed task 
  •  Add callbacks to determine what should be done upon completion 
  •  Chain promises into a full asynchronous flow 
  •  Change failures into successes to meet the needs of your specific application 
  •  Modify data to make it ready for display 
  •  Fight race conditions: wait for several parallel tasks to complete before moving on 
  •  Combine a varying number of asynchronous tasks in a sequential order 
  •  Simulate asynchronous behavior 
  •  Race Promises against each other and single out the fastest one 
  •  Choose between events and Promises 


Code Bundle:

Get the code used in the course from GitHub

What's included?

20 Videos
5 Quizzes
1 Survey
Mathieu Chauvinc
Mathieu Chauvinc

About the Instructor

Mathieu Chauvinc is a Managing Director at Red Ape Solutions, where he aspires to keep the company at the bleeding edge of web technologies. On a daily basis, he leads the tech team of 15 and collaborates with them in building complex single page applications and neat hybrid mobile apps. He has been involved in web technologies for over a decade, from Django to Node.js and Go, SQL to NoSQL, Mootools to Angular 2, continuously trying to keep the right balance between the excitement of new frameworks and the stability of proven ones. He always has a special place in his heart for Python and Django.

He holds a Master’s in Engineering from the German University Karlsruhe and a Master’s in Engineering from the French ENSAM (Paris). Despite an engineering background, he has always had a passion for knowledge sharing, which has followed him until today, and he regularly conducts corporate or free training sessions on various IT topics in his country of residence, Malaysia.

He is also the author of several video courses, published by Packt, such as Learning JavaScript Promises and Introducing Ionic 2. He has recently enjoyed the chance of reviewing courses for Packt.

What others have been saying about this course:

Sign up to this course and start learning today

Sign up now!