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.