New course! Every coder should learn Generative AI!
Try a free lesson+ 7
What is switch statement?
2 Answers
+ 1
The switch provides for a multiway branch. it enables a program to select among several alternatives. Way better and more organized than using nested if's which can get messy and complicated.