转载地址:http://dmitrysoshnikov.com/ecmascript/javascript-the-core/ 

This note is an overview and summary of the “ECMA-262-3 in detail” series. Every section contains references to the appropriate matching chapters so you can read them to get a deeper understanding.

Intended audience: experienced programmers, professionals.

We start out by considering the concept of an object, which is fundamental to ECMAScript.

An object

ECMAScript, being a highly-abstracted object-oriented language, deals with objects. There are alsoprimitives, but they, when needed, are also converted to objects.

An object is a collection of properties and has a single prototype object. The prototype may be either an object or the null value.

Let’s take a basic example of an object. A prototype of an object is referenced by the internal[[Prototype]] property. However, in figures we will use __<internal-property>__ underscore notation instead of the double brackets, particularly for the prototype object: __proto__ (which is a real, but non-standard, feature in some engines, e.g. SpiderMonkey).

For the code:

var foo = {
  x: 10,
  y: 20
};

相关文章:

  • 2021-05-13
  • 2021-08-28
  • 2021-08-09
  • 2021-07-18
  • 2022-01-23
  • 2022-12-23
  • 2021-11-07
  • 2022-02-06
猜你喜欢
  • 2021-05-10
  • 2022-12-23
  • 2022-12-23
  • 2021-12-30
  • 2021-11-26
相关资源
相似解决方案