Links: https://www.nowcoder.com/questionTerminal/63bc9543a21b43d59c45684bffb7c014
Source: Niu Ke Net
JS, the object can be divided into "internal object", "host Object" and "custom object" three kinds. 1, internal object JS internal objects include array, Boolean, Date, Function, Global, Math, Number, object, REGEXP, String, and various error class objects, including errors, Evalerror, Rangeerror, Referenceerror, SyntaxError and TypeError. The two objects, global and math, are also known as " built-in objects ," which are created when the script is initialized and do not have to instantiate both objects.
2. Host Object
The host object is the object provided by the environment that executes the JS script. For JS embedded in the Web page, the host object is the object provided by the browser, so it is also called the browser object, such as IE, Firefox and other browser-provided objects. Different browsers provide host objects that may be different, even if they are provided with the same object, and they are implemented in a variety of ways! This can lead to browser compatibility issues and increase the difficulty of development. There are many browser objects, such as window and documen,element,form,image, and so on.
3. Custom Objects
As the name implies, it is the developer's own defined object. JS allows the use of custom objects, so that JS applications and functions are expanded
Internal objects, host objects, custom objects in JavaScript