ECMAScript object type

Source: Internet
Author: User
In ECMAScript, all objects are not created in the same way. Generally, three types of objects can be created and used: local objects, built-in objects, and host objects. The local object ECMA-262 defines a local object as an object provided by the ECMAScript implementation independent of the host environment ". Simply put, a local object is the class defined by the ECMA-262 (reference type ). These include: Object Function Array String Boolean Number Date RegExp Error EvalError RangeError ReferenceError SyntaxError TypeError URIError pages JavaScript advanced tutorial: ECMAScript reference type JavaScript advanced tutorial: ECMAScript Function JavaScript reference manual: array object JavaScript Reference Manual: Boolean object JavaScript Reference Manual: Date object JavaScript Reference Manual: Number object JavaScript Reference Manual: String object JavaScript reference manual: regExp object built-in object ECMA-262 defines the built-in object (built-in object) All objects provided by the ript implementation, independent from the host environment, appear when the ECMAScript program starts to run ". This means that developers do not have to explicitly instantiate the built-in object, which has been instantiated. The ECMA-262 defines only two built-in objects, Global and Math (they are also local objects and, by definition, each built-in object is a local object ). Related page JavaScript Reference Manual: Global object JavaScript Reference Manual: Math object host object all non-local objects are the objects provided by the host object (host object) implemented by ECMAScript. All BOM and DOM objects are host objects. Related Pages http://www.w3school.com.cn/js/pro_js_object_types.aspJavaScript advanced tutorial: JavaScript implementation W3School Reference Manual: JavaScript reference manual W3School Tutorial: html dom tutorial

 

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.