JavaScript Promises Essentials

Build fully functional web applications using Promises, the new standard in JavaScript

JavaScript Promises Essentials

This ebook is included in a Mapt subscription
Rami Sarieddine

Build fully functional web applications using Promises, the new standard in JavaScript
$10.00
$22.99
RRP $13.99
RRP $22.99
eBook
Print + eBook
Access every Packt eBook & Video for just $100
 
  • 4,000+ eBooks & Videos
  • 40+ New titles a month
  • 1 Free eBook/Video to keep every month
Find Out More
 
Code Files
Preview in Mapt

Book Details

ISBN 139781783985647
Paperback90 pages

Book Description

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.

Table of Contents

Chapter 1: JavaScript Promises – Why Should I Care?
Asynchronous programming in JavaScript
Why should I care about promises?
Summary
Chapter 2: The Promise API and Its Compatibility
Getting to know the API
Browser support and compatibility
Summary
Chapter 3: Chaining of Promises
Chaining like never before
Summary
Chapter 4: Error Handling
Exceptions and promises
Handling errors with promises
Summary
Chapter 5: Promises in WinJS
Introducing WinJS
Explaining the WinJS.Promise object
Summary
Chapter 6: Putting It All Together – Promises in Action
Implementing a promise library
Summary

What You Will Learn

  • 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

Authors

Table of Contents

Chapter 1: JavaScript Promises – Why Should I Care?
Asynchronous programming in JavaScript
Why should I care about promises?
Summary
Chapter 2: The Promise API and Its Compatibility
Getting to know the API
Browser support and compatibility
Summary
Chapter 3: Chaining of Promises
Chaining like never before
Summary
Chapter 4: Error Handling
Exceptions and promises
Handling errors with promises
Summary
Chapter 5: Promises in WinJS
Introducing WinJS
Explaining the WinJS.Promise object
Summary
Chapter 6: Putting It All Together – Promises in Action
Implementing a promise library
Summary

Book Details

ISBN 139781783985647
Paperback90 pages
Read More

Read More Reviews