[ Web Proxy ]
URL:
Viewing: https://developer.mozilla.org/ru/docs/Web/JavaScript/Reference/Global_Objects/Object [Back]  [Original]

Object - JavaScript | MDN

This page was translated from English by the community. Learn more and join the MDN Web Docs community.

View in English Always switch to English

Object

Baseline Widely available *

This feature is well established and works across many devices and browser versions. Its been available across browsers since 2015 ..

* Some parts of this feature may have varying levels of support.

Object JavaScript. . Object() / .

In this article

JavaScript Object; ( ) Object.prototype, (.. ). , Object.prototype, - , null, null.

Object.prototype , , , . , . , Object.prototype - JavaScript, - Object.prototype null .

Object

Object.prototype , , ( , - ). , Object.prototype, , . , null-. JavaScript :

, Object.prototype, call() , , .

js
const obj = {
  foo: 1,
  //        ,
  //       , 
  //      
  propertyIsEnumerable() {
    return false;
  },
};

obj.propertyIsEnumerable("foo"); // false;  
Object.prototype.propertyIsEnumerable.call(obj, "foo"); // true;  

js
//    
{ [ nameValuePair1[, nameValuePair2[, ...nameValuePairN] ] ] }

//    
new Object([value])

nameValuePair1, nameValuePair2, ... nameValuePairN

() ( ), .

value

.

Object

Object.length

1.

Object

Object.

Object

Object.assign()

.

Object.create()

.

Object.defineProperty()

, .

Object.defineProperties()

, .

Object.freeze()

: .

Object.getOwnPropertyDescriptor()

.

Object.getOwnPropertyNames()

, .

Object.getOwnPropertySymbols()

, .

Object.getPrototypeOf()

.

Object.is()

, ( , )

Object.isExtensible()

, .

Object.isFrozen()

, .

Object.isSealed()

, (sealed).

Object.keys()

, .

Object.observe()

.

Object.preventExtensions()

.

Object.seal()

.

Object.setPrototypeOf()

(.. [[Prototype]])

Object

JavaScript Object; Object, . , constructor toString(). Object , , , .

Object()

.

Object.prototype.constructor

, .

Object.prototype.__proto__

, .

Object.prototype.__defineGetter__()

, .

Object.prototype.__defineSetter__()

, , .

Object.prototype.__lookupGetter__()

, .

Object.prototype.__lookupSetter__()

, .

Object.prototype.hasOwnProperty()

, , , .

Object.prototype.isPrototypeOf()

, , , , .

Object.prototype.propertyIsEnumerable()

, , enumerable own.

Object.prototype.toLocaleString()

toString().

Object.prototype.toString()

.

Object.prototype.valueOf()

.

: Object undefined null

Object o:

js
const o = new Object();
const o = new Object(undefined);
const o = new Object(null);

: Object Boolean

Boolean o:

js
//  o = new Boolean(true);
const o = new Object(true);
js
//  o = new Boolean(false);
const o = new Object(Boolean());

Specification
ECMAScript 2027 LanguageSpecification
# sec-object-objects


Web Proxy Viewer  |  New URL  |  Original Page