Exercise:

Finish the switch statement. Add the following cases: BMW, Ford and Peugeot.
Set the value of the variable text to: "German car" for BMW. "American car" for Ford. "French car" for Peugeot.
Also add a default case where the text value is "Unknown car name".

Hint: Do not forget the colon after each case, and end the case with a break statement.

Edit This Code:
Result:
Correct Code:
Correct Result:
Exercise - © w3schools.com