From 9709b7b592ea85db8f4e14e0fb23f8e120b2db2b Mon Sep 17 00:00:00 2001 From: WATAHIKI Yuto Date: Sat, 28 Mar 2026 20:53:01 +0900 Subject: [PATCH] =?UTF-8?q?=E3=80=8C=E9=96=A2=E6=95=B0=E3=80=8D=E3=81=AE?= =?UTF-8?q?=E7=AF=80=E3=81=AE=E6=BC=94=E7=BF=92=E5=95=8F=E9=A1=8C2?= =?UTF-8?q?=E3=81=AE=E8=A7=A3=E7=AD=94=E3=82=92=E4=BF=AE=E6=AD=A3?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../09-functions/_samples/mobile-phone-bill/script.js | 3 ++- docs/1-trial-session/09-functions/index.mdx | 3 ++- 2 files changed, 4 insertions(+), 2 deletions(-) diff --git a/docs/1-trial-session/09-functions/_samples/mobile-phone-bill/script.js b/docs/1-trial-session/09-functions/_samples/mobile-phone-bill/script.js index 45608e2ee..a7968cb49 100644 --- a/docs/1-trial-session/09-functions/_samples/mobile-phone-bill/script.js +++ b/docs/1-trial-session/09-functions/_samples/mobile-phone-bill/script.js @@ -1,8 +1,9 @@ function calculateCost(monthlyDataUsage) { if (monthlyDataUsage < 5.0) { return monthlyDataUsage * 600; + } else { + return 3000; } - return 3000; } document.write(calculateCost(3.5)); diff --git a/docs/1-trial-session/09-functions/index.mdx b/docs/1-trial-session/09-functions/index.mdx index cebaefb5d..77b925a28 100644 --- a/docs/1-trial-session/09-functions/index.mdx +++ b/docs/1-trial-session/09-functions/index.mdx @@ -214,8 +214,9 @@ document.write(calculateCost(3.5)); function calculateCost(monthlyDataUsage) { if (monthlyDataUsage < 5.0) { return monthlyDataUsage * 600; + } else { + return 3000; } - return 3000; } document.write(calculateCost(3.5));