mirror of
https://github.com/kamranahmedse/developer-roadmap.git
synced 2026-10-25 09:34:00 +08:00
* refactor: clean to roadmap content * refactor: move shared helpers into scripts/lib
667 B
667 B
Switch
The switch statement evaluates an expression and executes the matching case block. It is an alternative to a long chain of if...else if statements when comparing one value against multiple options. Each case should typically end with a break to prevent fall-through to the next case.
Visit the following resources to learn more: