All things in JavaScript are objects: strings, values, arrays, and functions. Almost every js is inseparable from its js objects. In addition, JavaScript allows user-defined objects. The following is a summary of javascript Object learning in small series. For more information, see
JavaScript Object
JavaScript provides multiple built-in objects, such as String, Date, and Array.
Objects are only special data types with properties and methods.
In JavaScript, almost every js is inseparable from its objects. Next we will take a closer look at js objects.
The classification of objects in js is the same as the classification of functions in the language we have learned before. One is the predefined object that comes with the system, and the other is the custom object written by the user.
Shows the general content:
I. Core objects
1. Array object
Array object, used to create an array, use new to create
Common methods include:
Common attributes:
The example shows how to create and use an Array object.