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

Object() constructor - 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() constructor

Baseline Widely available

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

Object .

, Object new Object() .

In this article

js
new Object();
new Object(value);

value

js
let o = new Object();
o.foo = 42;

console.log(o);
// Object { foo: 42 }

undefined null types

o :

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

Specification
ECMAScript 2027 LanguageSpecification
# sec-object-constructor


Web Proxy Viewer  |  New URL  |  Original Page