Skip to content

Commit

Permalink
if構文「で」実行に変更、半角スペース追加
Browse files Browse the repository at this point in the history
  • Loading branch information
aster-void committed Oct 1, 2023
1 parent e27bfd8 commit 12da21f
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion docs/1-trial-session/09-functions/index.md
Original file line number Diff line number Diff line change
Expand Up @@ -69,7 +69,7 @@ let age = 21;
let hasDriverLicense = true;
let isDrunk = true;
function tryToDrive() {
// if文の実行する式が一行だけの場合、{}を省略できます。
// if 構文で実行する式が一行だけの場合、{} を省略できます。
if (age < 18) return;
if (!hasDriverLicense) return;
if (isDrunk) return;
Expand Down

0 comments on commit 12da21f

Please sign in to comment.