From c0eb4e6fac614e53d0d8813928ed6dd40a21b514 Mon Sep 17 00:00:00 2001 From: Gaurav Nainwal <41539225+nyni123@users.noreply.github.com> Date: Sat, 8 Apr 2023 14:52:17 +0530 Subject: [PATCH] fix(curriculum): revise intro "Selecting from Many Options with Switch Statements" (#50000) --- .../selecting-from-many-options-with-switch-statements.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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 b4fa4b1ac2d..87f0ade0359 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 @@ -9,7 +9,7 @@ dashedName: selecting-from-many-options-with-switch-statements # --description-- -If you have many options to choose from, use a switch statement. A `switch` statement tests a value and can have many case statements which define various possible values. Statements are executed from the first matched `case` value until a `break` is encountered. +If you need to match one value against many options, you can use a switch statement. A `switch` statement compares the value to the case statements which define various possible values. Any valid JavaScript statements can be executed inside a case block and will run from the first matched `case` value until a `break` is encountered. Here is an example of a `switch` statement: