質問編集履歴

1

文字列を返すとはreturnを使うということだと思ったので変えました

2018/12/05 08:54

投稿

yui-chan
yui-chan

スコア18

test CHANGED
File without changes
test CHANGED
@@ -48,7 +48,7 @@
48
48
 
49
49
  info(){
50
50
 
51
- console.log(this.subtitle+'は'+this.message);
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(document.info());
65
+ $('.slide-title').text(title);
64
66
 
65
67
  ```
66
68