JavaScript Promises Essentials

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

JavaScript Promises Essentials

Rami Sarieddine

Build fully functional web applications using Promises, the new standard in JavaScript
Mapt Subscription
FREE
$29.99/m after trial
eBook
$9.80
RRP $13.99
Save 29%
Print + eBook
$22.99
RRP $22.99
What do I get with a Mapt Pro subscription?
  • Unlimited access to all Packt’s 5,000+ eBooks and Videos
  • Early Access content, Progress Tracking, and Assessments
  • 1 Free eBook or Video to download and keep every month after trial
What do I get with an eBook?
  • Download this book in EPUB, PDF, MOBI formats
  • DRM FREE - read and interact with your content when you want, where you want, and how you want
  • Access this title in the Mapt reader
What do I get with Print & eBook?
  • Get a paperback copy of the book delivered to you
  • Download this book in EPUB, PDF, MOBI formats
  • DRM FREE - read and interact with your content when you want, where you want, and how you want
  • Access this title in the Mapt reader
What do I get with a Video?
  • Download this Video course in MP4 format
  • DRM FREE - read and interact with your content when you want, where you want, and how you want
  • Access this title in the Mapt reader
$0.00
$9.80
$22.99
$29.99p/m after trial
RRP $13.99
RRP $22.99
Subscription
eBook
Print + eBook
Start 30 Day Trial
Subscribe and access every Packt eBook & Video.
 
  • 5,000+ eBooks & Videos
  • 50+ New titles a month
  • 1 Free eBook/Video to keep every month
Start Free Trial
 
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

Recommended for You

Mastering Web Application Development with AngularJS Book Cover
Mastering Web Application Development with AngularJS
$ 26.99
$ 5.40
AngularJS Web Application Development Blueprints Book Cover
AngularJS Web Application Development Blueprints
$ 29.99
$ 21.00
Object-Oriented JavaScript - Second Edition Book Cover
Object-Oriented JavaScript - Second Edition
$ 29.99
$ 21.00
AngularJS UI Development Book Cover
AngularJS UI Development
$ 26.99
$ 18.90
Mastering JavaScript Design Patterns Book Cover
Mastering JavaScript Design Patterns
$ 26.99
$ 18.90
MEAN Web Development Book Cover
MEAN Web Development
$ 29.99
$ 3.00