<<< Switch statement using an integer | Index | Switch fall-through behavior >>> |
switch (productCode) { case "hm01": productDescription = "Hammer"; break; case "bn03": productDescription = "Box of Nails"; break; default: productDescription = "Product not found"; break; }
<<< Switch statement using an integer | Index | Switch fall-through behavior >>> |