JavaScript standard built-in objects

JavaScript said the global standard built-in objects or objects (global objects) and not global objects (global object) confusion. Here that the overall target is to say where the objects in the global scope, global scope contains the properties of the global object, and it may be inherited attributes.

Standard built-in JavaScript object classification:

1. The value of the property (Infinity, NaN, undefined, null literal, globalThis) these global property returns a simple value, and these values ​​are not their own properties and methods.

2. Function attributes (eval (), uneval (), isFinite (), isNaN (), parseFloat (), parseInt (), decodeURI (), decodeURIComponent (), encodeURI (), encodeURIComponent (), escape (), unescape ()) global function can be called directly, no need to specify your object when called, the result will be returned directly to the caller after the execution.

3. The basic object (Object, Function, Boolean, Symbol, Error, EvalError, InternalError, RangeError, ReferenceError, SyntaxError, TypeError, URIError) is a base object definition or use of other base objects. The basic objects include general objects, function objects, and error objects.

4. numbers, dates, and mathematical objects (Number, BigInt, Math, Date) used to represent the object number, and date of performing mathematical calculations.

5. strings and regular Object (String, RegExp) used to represent strings and the operation target.

6. The indexable array of objects (Array, Int8Array, Uint8Array, Uint8ClampedArray, Int16Array, Uint16Array, Int32Array, Uint32Array, Float32Array, Float64Array, BigInt64Array, BigUint64Array) of collections of data objects by index values ​​sorted, including arrays and array type, and the array of objects of class structure.

7. Use key collection object (Map, Set, WeakMap, WeakSet) collection of objects which will be used in storing data to key insertion order to support iterative element.

8. structured data (ArrayBuffer, SharedArrayBuffer, Atomics, DataView, JSON) objects used to represent the structure and operation of the data buffer, or JSON (JavaScript Object Notation) coded data.

The control abstract objects (Promise, Generator, GeneratorFunction, AsyncFunction)

10. The reflection (Reflect, Proxy)

11. The international (Intl, Intl.Collator, Intl.DateTimeFormat, Intl.ListFormat, Intl.NumberFormat, Intl.PluralRules, Intl.RelativeTimeFormat, Intl.Locale) to support multi-language processing to join the ECMAScript objects.

12. WebAssembly(WebAssembly、WebAssembly.Module、WebAssembly.Instance、WebAssembly.Memory、WebAssembly.Table、WebAssembly.CompileError、WebAssembly.LinkError、WebAssembly.RuntimeError)

13. Other (arguments)

Number standard built-in digital objects, for example, a brief description constructors, properties, and methods. Number value corresponding objects are wrapper objects, may be used as a constructor may be used as a tool function. As a constructor, which is used for generating values ​​of the object; function as a tool, it can be any type of value into value. Its constructors, properties and methods as shown below:

Reference website: https://developer.mozilla.org/zh-CN/

Guess you like

Origin www.cnblogs.com/liguofeng/p/11646996.html