Using JavaScript Objects

JavaScript has several built-in objects, such as Number, Array, String, Date, and Math. Each of these built-in objects has member properties and methods. In addition to the JavaScript objects, you will find as you read this book that Node.js, MongoDB, Express, and Angular add their own built-in objects as well.

JavaScript provides a fairly nice object-oriented programming structure for you to create your own custom objects as well. Using objects rather than just a collection of functions is key to writing clean, efficient, reusable JavaScript code.

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.