Skip to content

Commit ac25b90

Browse files
authored
Class でのコンストラクタの引数の説明を明確に (#626)
* コンストラクタの引数の説明があいまいだったので明確に * る -> た
1 parent 644e093 commit ac25b90

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

docs/2-browser-apps/03-class/index.mdx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -152,7 +152,7 @@ class Student {
152152
// コンストラクタを定義する
153153
constructor(name, birthYear, currentYear) {
154154
// this.name は作成されたインスタンスのプロパティ
155-
// name はインスタンス生成時に代入する値
155+
// name はコンストラクタに渡された引数
156156
this.name = name;
157157
this.age = currentYear - birthYear;
158158
}

0 commit comments

Comments
 (0)