The types in JS are divided into three kinds, "internal object", "host Object", "Custom Object"
1. "Internal object" has date, Function, Array, Regexp, Number, object, String, Math, Global, Boolean,
There are also various error class objects, including error, Evalerror, Rangeerror, Referenceerror, SyntaxError, and TypeError.
The "Global" and "Math" objects are "built-in objects" that are created when the script is initialized and do not have to instantiate the object
2. "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, document, and so on.
3. The "Custom Object", as its name implies, is the developer's own defined object. JS allows the use of custom objects, so that JS applications and functions are expanded.
Types of objects in JS