fix(curriculum): clarify example switch statement (#49592)

This commit is contained in:
John
2023-03-06 16:50:34 +13:00
committed by GitHub
parent 933b909111
commit d25f19d153

View File

@@ -14,12 +14,12 @@ If you have many options to choose from, use a <dfn>switch</dfn> 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;
}
```