Movatterモバイル変換


[0]ホーム

URL:


  1. Glossary
  2. Object

Object

In JavaScript, objects can be seen as a collection of properties. With theobject literal syntax, a limited set of properties are initialized; then properties can be added and removed. Property values can be values of any type, including other objects, which enables building complex data structures. Properties are identified usingkey values. Akey value is either aString value or aSymbol value.

There are two types of object properties: Thedata property and theaccessor property.

Note:It's important to recognize it's accessorproperty — not accessormethod. We can give a JavaScript object class-like accessors by using a function as a value — but that doesn't make the object a class.

See also

Help improve MDN

Learn how to contribute

This page was last modified on byMDN contributors.


[8]ページ先頭

©2009-2026 Movatter.jp