CHAPTER 5

image

JavaScript Primer

In this chapter I provide a quick tour of the most important features of the JavaScript language, as they apply to this book. I don’t have the space to describe JavaScript completely, but I have focused on the essentials that you’ll need to get up to speed and follow the examples in this book. In addition to the most important core JavaScript language features, I describe the set of utility methods that AngularJS provides.

I finish this chapter by demonstrating how JavaScript promises work. A promise represents an asynchronous task, such as an Ajax request, and they are widely used in AngularJS apps, which is a topic ...

Get Pro AngularJS now with the O’Reilly learning platform.

O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.