質問編集履歴
1
文字列を返すとはreturnを使うということだと思ったので変えました
test
CHANGED
File without changes
|
test
CHANGED
@@ -48,7 +48,7 @@
|
|
48
48
|
|
49
49
|
info(){
|
50
50
|
|
51
|
-
|
51
|
+
return this.subtitle+'は'+this.message;
|
52
52
|
|
53
53
|
}
|
54
54
|
|
@@ -58,9 +58,11 @@
|
|
58
58
|
|
59
59
|
const document = new Document('チョコレート','美味しい');
|
60
60
|
|
61
|
+
const title=document.info();
|
61
62
|
|
62
63
|
|
64
|
+
|
63
|
-
$('.slide-title').text(
|
65
|
+
$('.slide-title').text(title);
|
64
66
|
|
65
67
|
```
|
66
68
|
|