回答編集履歴
1
文言ミス
answer
CHANGED
@@ -10,7 +10,7 @@
|
|
10
10
|
hoge = new Hoge("hogehoge");
|
11
11
|
hoge.output(); // hogehoge
|
12
12
|
|
13
|
-
// これは
|
13
|
+
// これは hogeOutput() という文脈で呼び出されるので、thisがundefinedを参照する
|
14
14
|
hogeOutput = hoge.output;
|
15
15
|
hogeOutput(); // Uncaught TypeError: this is undefined
|
16
16
|
```
|