JavaScript Promises Essentials

More Information
  • Implement asynchronous programming in JavaScript
  • Get acquainted with the JavaScript Promises API
  • Choose the right JavaScript libraries to use callbacks in a non-compatible platform
  • Write chained asynchronous operations that are easy to manage
  • Master WinJS Promises for developing Windows applications
  • Differentiate between various implementations of promises in JavaScript
  • Put promises into action in your applications
  • Catch and handle errors effectively in asynchronous operations
  • Explore browser support and platform compatibility for JavaScript promises

Promises are a new programming paradigm in JavaScript that allow developers to request data that they don't have yet and deal with it at a non-determined point in the future (asynchronously). Starting with the basics of the promise objects, we'll be able to leverage the maximum capabilities of promises when writing applications.

This book starts by giving you some background information on the asynchronous programming model in JavaScript, recognizing its importance in JavaScript programming. It then walks you through the key concepts and intricacies of the Promises API. Following that, you will learn how you can write complex asynchronous operations with chained promises and be able to catch and handle exceptions. With this book, you'll learn how to write better asynchronous operations using JavaScript promises.

  • Integrate JavaScript Promises into your application by mastering the key concepts of the Promises API
  • Replace complex nested callbacks in JavaScript with the more intuitive chained Promises
  • Acquire the knowledge needed to start working with JavaScript Promises immediately
Page Count 90
Course Length 2 hours 42 minutes
ISBN 9781783985647
Date Of Publication 24 Sep 2014


Rami Sarieddine

Rami Sarieddine is a passionate technology evangelist and a subject matter expert in web development, Windows apps, and Microsoft Azure. He is currently working as a Technical Evangelist with Microsoft. This is his second publication, following his first book Developing Windows Store Apps with HTML5 and JavaScript, Packt Publishing (

He has more than 8 years of experience in programming for the Web. He was awarded the Microsoft Most Valuable Professional status twice, in 2012 and 2013, for his contributions to the technical communities of ASP.NET/IIS and Visual C#. He has featured as a regular speaker at key technical events for Microsoft Lebanon, including Open Door and TechDays. He has delivered hundreds of training sessions on HTML5, JavaScript, Azure, and Visual Studio.

When not working, Rami enjoys running and spending time with his loved ones. And when on vacation, he enjoys traveling and visiting new places around the world.

He can be reached via his e-mail ID, You can follow his tweets as well; his Twitter handle is @ramiesays. You can also find his blog posts on