We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent f0fda33 commit 5f634feCopy full SHA for 5f634fe
1 file changed
docs/1-trial-session/08-if-statement/index.mdx
@@ -45,15 +45,15 @@ if (式) {
45
<Term>式</Term>の<Term>評価</Term>結果が`true`であれば処理1が、`false`であれば処理2が実行されます。
46
47
```javascript
48
-const age = 18;
49
-if (age >= 20) {
+const age = 16;
+if (age >= 18) {
50
document.write("大人です");
51
} else {
52
document.write("子供です");
53
}
54
```
55
56
-この例では、`age >= 20`の<Term>評価</Term>が`false`となるので、`子供です`が表示されます。
+この例では、`age >= 18`の<Term>評価</Term>が`false`となるので、`子供です`が表示されます。
57
58
## if~else if~else
59
0 commit comments