Skip to content

Commit cee4740

Browse files
committed
translate "In Conclusion" in "Function" to ja
1 parent 8c1cb00 commit cee4740

1 file changed

Lines changed: 3 additions & 6 deletions

File tree

‎doc/ja/function/constructors.md‎

Lines changed: 3 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -96,11 +96,8 @@ JavaScriptのコンストラクタは色々ある他のプログラム言語と
9696
2. ファクトリーを継承するために、他のオブジェクトの全てのメソッドをコピーする必要があるか、新しいオブジェクトのプロトタイプ上にそのオブジェクトを設置する必要があります。
9797
3. `new`キーワードが無いという理由だけで、プロトタイプチェーンから外れてしまうのは、どことなく言語の精神に反します。
9898

99-
### In Conclusion
99+
### 終わりに
100+
101+
`new`キーワードが省略される事により、バグの可能性がもたらされます。それは確かにプロトタイプを使わない理由には**なりません**。最終的には、アプリケーションの必要性により、どちらの解決法がより良いかが決まってきます。特に大切なのは、オブジェクトの作成に特定のスタイルを選ぶ事、また**そのスタイルに固執する事**です。
100102

101-
While omitting the `new` keyword might lead to bugs, it is certainly **not** a
102-
reason to drop the use of prototypes altogether. In the end it comes down to
103-
which solution is better suited for the needs of the application, it is
104-
especially important to choose a specific style of object creation **and stick**
105-
with it.
106103

0 commit comments

Comments
 (0)