aboutsummaryrefslogtreecommitdiff
path: root/files
diff options
context:
space:
mode:
Diffstat (limited to 'files')
-rw-r--r--files/ko/web/javascript/reference/global_objects/object/object/index.html71
1 files changed, 71 insertions, 0 deletions
diff --git a/files/ko/web/javascript/reference/global_objects/object/object/index.html b/files/ko/web/javascript/reference/global_objects/object/object/index.html
new file mode 100644
index 0000000000..26c78b9000
--- /dev/null
+++ b/files/ko/web/javascript/reference/global_objects/object/object/index.html
@@ -0,0 +1,71 @@
+---
+title: Object() constructor
+slug: Web/JavaScript/Reference/Global_Objects/Object/Object
+tags:
+- Constructor
+- JavaScript
+- Object
+- Reference
+browser-compat: javascript.builtins.Object.Object
+---
+<div>{{JSRef}}</div>
+
+<p><strong><code>Object</code>의 생성자</strong>는 주어진 값를 객체 래퍼로 만들어 줍니다.</p>
+
+<ul>
+ <li>만약 값이 {{jsxref("null")}} 또는 {{jsxref("undefined")}} 라면, 빈 객체를 생성하여 반환합니다.</li>
+ <li>그렇지 않으면, 주어진 값의 타입 객체를 반환합니다.</li>
+ <li>만약 주어진 값이 객체라면, 해당 값을 그대로 반환합니다.</li>
+</ul>
+
+<p>비 생성자 컨텍스트로 호출되면, <code>Object</code> 는 <code>new Object()</code> 와 동일하게 동작합니다.</p>
+
+<h2 id="Syntax">구문</h2>
+
+<pre class="brush: js">new Object()
+new Object(<var>value</var>)</pre>
+
+<h3 id="Parameters">매개변수</h3>
+
+<dl>
+ <dt><code><var>value</var></code></dt>
+ <dd>아무 값</dd>
+</dl>
+
+<h2 id="Examples">예시</h2>
+
+<h3 id="Creating_a_new_Object">새로운 객체 생성</h3>
+
+<pre class="brush: js">let o = new Object()
+o.foo = 42
+
+console.log(o)
+// Object { foo: 42 }</pre>
+
+<h3 id="Using_Object_given_undefined_and_null_types">undefined와 null을 받는 객체
+ types</h3>
+
+<p>다음 예제는 빈 <code>객체</code>를 <code>o</code> 변수에 저장합니다 :</p>
+
+<pre class="brush: js">let o = new Object()
+</pre>
+
+<pre class="brush: js">let o = new Object(undefined)
+</pre>
+
+<pre class="brush: js">let o = new Object(null)</pre>
+
+<h2 id="Specifications">명세</h2>
+
+{{Specifications}}
+
+<h2 id="Browser_compatibility">브라우저 호환성</h2>
+
+
+<p>{{Compat}}</p>
+
+<h2 id="See_also">같이보기</h2>
+
+<ul>
+ <li><a href="/ko/docs/Web/JavaScript/Reference/Operators/Object_initializer">객체 초기자</a></li>
+</ul>