Skip to content

Commit 55d3074

Browse files
authored
Merge pull request #452 from ut-code/427-mig-from-if-syntax-to-if-statement
「if 構文」を「if 文」に書き換え
2 parents 1e85f98 + 8662a38 commit 55d3074

File tree

2 files changed

+4
-4
lines changed

2 files changed

+4
-4
lines changed

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

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -6,9 +6,9 @@ import Term from "@site/src/components/Term";
66
import ViewSource from "@site/src/components/ViewSource";
77
import Answer from "@site/src/components/Answer";
88

9-
## if 構文
9+
## if
1010

11-
**if 構文**は、<Term type="javascript">JavaScript</Term> の<Term strong type="javascriptControlFlow">制御構造</Term>で、特定の条件下のみで実行されるプログラムを記述することができます。
11+
**if **は、<Term type="javascript">JavaScript</Term> の<Term strong type="javascriptControlFlow">制御構造</Term>で、特定の条件下のみで実行されるプログラムを記述することができます。
1212

1313
## 基本構造
1414

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

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -73,7 +73,7 @@ let age = 21;
7373
let hasDriverLicense = true;
7474
let isDrunk = true;
7575
function tryToDrive() {
76-
// if 構文で実行する式が一行だけの場合、{} を省略できます。
76+
// if 文で実行する式が一行だけの場合、{} を省略できます。
7777
if (age < 18) return;
7878
if (!hasDriverLicense) return;
7979
if (isDrunk) return;
@@ -191,7 +191,7 @@ function max(a, b) {
191191

192192
:::note
193193

194-
`a > b``true` の場合、if 構文内部の `return` で関数実行が中断されるため、`else` キーワードは必ずしも必要ではありません。そのため、以下のように書くこともできます。
194+
`a > b``true` の場合、if 文内部の `return` で関数実行が中断されるため、`else` キーワードは必ずしも必要ではありません。そのため、以下のように書くこともできます。
195195

196196
```javascript
197197
function max(a, b) {

0 commit comments

Comments
 (0)