aboutsummaryrefslogtreecommitdiff
path: root/files/zh-tw/web/javascript/guide/working_with_objects
diff options
context:
space:
mode:
Diffstat (limited to 'files/zh-tw/web/javascript/guide/working_with_objects')
-rw-r--r--files/zh-tw/web/javascript/guide/working_with_objects/index.html2
1 files changed, 1 insertions, 1 deletions
diff --git a/files/zh-tw/web/javascript/guide/working_with_objects/index.html b/files/zh-tw/web/javascript/guide/working_with_objects/index.html
index 823f9c1e4b..44bda4c9b8 100644
--- a/files/zh-tw/web/javascript/guide/working_with_objects/index.html
+++ b/files/zh-tw/web/javascript/guide/working_with_objects/index.html
@@ -124,7 +124,7 @@ myCar.year = 1969</pre>
<p>JavaScript has a number of predefined objects. In addition, you can create your own objects. You can create an object using an <a href="/en-US/docs/Web/JavaScript/Reference/Operators/Object_initializer">object initializer</a>. Alternatively, you can first create a constructor function and then instantiate an object invoking that function in conjunction with the <code>new</code> operator.</p>
-<h3 id="Using_object_initializers"><a id="Object_initializers" name="Object_initializers">Using object initializers</a></h3>
+<h3 id="Using_object_initializers"><a name="Object_initializers">Using object initializers</a></h3>
<p>In addition to creating objects using a constructor function, you can create objects using an <a href="/en-US/docs/Web/JavaScript/Reference/Operators/Object_initializer">object initializer</a>. Using object initializers is sometimes referred to as creating objects with literal notation. "Object initializer" is consistent with the terminology used by C++.</p>