2. JavaScript Primer

Each of the components that you will be working with in this book—Node.js, MongoDB, Express, and AngularJS—is based on the JavaScript language. You’ll therefore find it easy to implement and reuse code at all levels of your web development stack.

The purpose of this chapter is to familiarize you with some of the language basics of JavaScript, such as variables, functions, and objects. It is not intended as a full language guide but rather a synopsis of important syntax and idioms. If you are not familiar with JavaScript, working through this primer should enable you to understand the examples throughout the rest of the book. If you already know JavaScript well, you can either skip this chapter or review it as a refresher. ...

Get Node.js, MongoDB, and AngularJS Web Development 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.