From d25f19d15352aa2a6df7a0dd0c55b85e2a04c0fc Mon Sep 17 00:00:00 2001 From: John <47208192+John-I-Am@users.noreply.github.com> Date: Mon, 6 Mar 2023 16:50:34 +1300 Subject: [PATCH] fix(curriculum): clarify example switch statement (#49592) --- ...lecting-from-many-options-with-switch-statements.md | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/curriculum/challenges/english/02-javascript-algorithms-and-data-structures/basic-javascript/selecting-from-many-options-with-switch-statements.md b/curriculum/challenges/english/02-javascript-algorithms-and-data-structures/basic-javascript/selecting-from-many-options-with-switch-statements.md index 1cb672c7a72..b4fa4b1ac2d 100644 --- a/curriculum/challenges/english/02-javascript-algorithms-and-data-structures/basic-javascript/selecting-from-many-options-with-switch-statements.md +++ b/curriculum/challenges/english/02-javascript-algorithms-and-data-structures/basic-javascript/selecting-from-many-options-with-switch-statements.md @@ -14,12 +14,12 @@ If you have many options to choose from, use a switch statement. A `s Here is an example of a `switch` statement: ```js -switch (lowercaseLetter) { - case "a": - console.log("A"); +switch (fruit) { + case "apple": + console.log("The fruit is an apple"); break; - case "b": - console.log("B"); + case "orange": + console.log("The fruit is an orange"); break; } ```