Skip to content

Commit 8cf7e72

Browse files
authored
Merge pull request #490 from ut-code/change-arg-name-of-ans-tag
Answerタグの引数をtypeからtitleに変更
2 parents 7c0364a + 0e7a397 commit 8cf7e72

File tree

11 files changed

+19
-19
lines changed

11 files changed

+19
-19
lines changed

docs/1-trial-session/02-html/index.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -133,7 +133,7 @@ VS Code 上で作成したファイルは `index.html` でした。しかしな
133133

134134
箇条書きを作るときには、単に「・」と書くのではなく箇条書き用のタグを使います。「HTML 箇条書き」などと検索してみましょう。
135135

136-
<Answer type="持ち物リスト">
136+
<Answer title="持ち物リスト">
137137

138138
```html
139139
<!doctype html>
@@ -170,7 +170,7 @@ VS Code 上で作成したファイルは `index.html` でした。しかしな
170170
- テキストボックスは `input` タグで作成できます。
171171
- 最後の箇条書きには `ul` タグや `li` タグを使用しています。
172172

173-
<Answer type="フォーム">
173+
<Answer title="フォーム">
174174

175175
```html
176176
<!doctype html>

docs/1-trial-session/07-if-statement/index.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -88,7 +88,7 @@ const age = 20;
8888
- 18 歳以上 ~ 25 歳未満なら `投票に行けます` と表示する
8989
- 25 歳以上なら `衆議院議員に立候補できます` と表示する
9090

91-
<Answer type="選挙権">
91+
<Answer title="選挙権">
9292

9393
if ~ else if ~ else 構文を使うと、次のように書くことができます。
9494

docs/1-trial-session/08-loop/index.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -191,7 +191,7 @@ const string2 = `10から2を引くと${10 - 2}です。`;
191191
いくつにすればよいでしょうか?
192192
:::
193193

194-
<Answer type="10の階乗">
194+
<Answer title="10の階乗">
195195

196196
```javascript
197197
let product = 1;
@@ -239,7 +239,7 @@ document.write(product);
239239
自然数`n``i`で割ったあまりは `n % i`で求められます。
240240
:::
241241

242-
<Answer type="素数判定">
242+
<Answer title="素数判定">
243243

244244
変数の、最後に代入した値のみを保持する性質を利用します。
245245

docs/1-trial-session/09-functions/index.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -194,7 +194,7 @@ for (let i = 0; i < 10; i += 1) {
194194
<p><Term type="javascriptIfStatement">if 文</Term>を使って、<code>a</code> が大きい場合と <code>b</code> が大きい場合で処理を書き分けます。</p>
195195
:::
196196

197-
<Answer type="大きい数">
197+
<Answer title="大きい数">
198198

199199
```javascript
200200
function max(a, b) {
@@ -246,7 +246,7 @@ document.write(calculateCost(3.5));
246246
> - 月間転送量 < 5.0 (GB) のとき、携帯電話料金は 月間転送量 × 600 (円/GB)
247247
> - 月間転送量 >= 5.0 (GB) のとき、携帯電話料金は 3000 (円)
248248
249-
<Answer type="携帯電話料金">
249+
<Answer title="携帯電話料金">
250250

251251
```javascript
252252
function calculateCost(monthlyDataUsage) {

docs/1-trial-session/10-array/index.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -129,7 +129,7 @@ const numbers = [-3, -1, 9, -10, 3, 7, 6, 1, 0, 5];
129129

130130
:::
131131

132-
<Answer type="配列の要素の和">
132+
<Answer title="配列の要素の和">
133133

134134
```javascript
135135
const numbers = [1, 2, 3, 4, 5, 6, 7, 8, 9, 10];
@@ -190,7 +190,7 @@ const array4 = [-878, -40, -324, -410, -592, -610, -880, -65, -423, -32];
190190

191191
:::
192192

193-
<Answer type="配列の最大値">
193+
<Answer title="配列の最大値">
194194

195195
配列の最初の値を初期値に設定することで解消します。
196196

docs/1-trial-session/11-object/index.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -72,7 +72,7 @@ const nextYearTanaka = incrementAge(tanaka);
7272
document.write(nextYearTanaka.age); // 19 と表示されてほしい
7373
```
7474

75-
<Answer type="年齢を増やす">
75+
<Answer title="年齢を増やす">
7676

7777
```javascript
7878
function incrementAge(person) {

docs/1-trial-session/12-css/index.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -74,7 +74,7 @@ CSS の<Term type="cssProperty">プロパティ</Term>には `color` (文字色)
7474
- 枠線の内側にも余白があります (padding)
7575
- ボックスに影がついています (box-shadow)
7676

77-
<Answer type="シンプルなボックス">
77+
<Answer title="シンプルなボックス">
7878

7979
```html
8080
<!doctype html>

docs/1-trial-session/13-dom/index.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -56,7 +56,7 @@ element.style.backgroundColor = "red";
5656

5757
[CSS の節](../12-css/index.md)の課題を、<Term type="styleAttribute">style 属性</Term>を使用せずに JavaScript のみで実現してみましょう。
5858

59-
<Answer type="JSを用いたCSSスタイリング">
59+
<Answer title="JavaScriptを用いたCSSスタイリング">
6060

6161
```html
6262
<!doctype html>

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

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -114,7 +114,7 @@ tanaka.introduceSelf();
114114

115115
自分自身の年齢を 1 増やすメソッド `incrementAge` を定義して、実行してみてください。
116116

117-
<Answer>
117+
<Answer title="年齢を増やすメソッド">
118118

119119
```javascript
120120
class Student {
@@ -275,7 +275,7 @@ tanaka.introduceSelf(); // 私の名前は田中です。18歳です。ドイツ
275275

276276
`Student` クラスを継承して `SeniorStudent` クラスを作ってみましょう。`SeniorStudent` クラスのインスタンスは `researchQuestion` プロパティを持ち、`introduceSelf` メソッドを実行すると自分の名前を出力した後に自分の研究内容を紹介するようにしてみましょう。
277277

278-
<Answer>
278+
<Answer title="学生のClassの定義">
279279

280280
```javascript
281281
class Student {

docs/2-browser-apps/04-anonymous-function/index.md

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -133,7 +133,7 @@ const students = ["Hazel", "Dorian", "Scarlett", "Daisy"];
133133

134134
:::
135135

136-
<Answer type="箇条書き">
136+
<Answer title="箇条書き">
137137

138138
```javascript
139139
const students = ["Hazel", "Dorian", "Scarlett", "Daisy"];
@@ -162,7 +162,7 @@ if (/* すべての点数が 50 点以上なら */) {
162162

163163
:::
164164

165-
<Answer type="進級可能?">
165+
<Answer title="進級可能?">
166166

167167
`Array#every` メソッドを使うと、配列の全要素が指定された関数でテストできます
168168

@@ -185,7 +185,7 @@ const minScore = scores.reduce(/* コールバック関数 */);
185185
document.write(minScore); // 55
186186
```
187187

188-
<Answer type="Array#reduceの使い方">
188+
<Answer title="Array#reduceの使い方">
189189

190190
```javascript
191191
const scores = [90, 65, 70, 55, 80];

0 commit comments

Comments
 (0)