//sample solution
var jacketColor = "";
var result;
switch (jacketColor) {
case "black":
result = "Pay $300";
break;
case "brown":
result = "Pay $200";
break;
case "green":
result = "Pay $5";
break;
default:
result = "This color does not match my eyes!";
}
No comments:
Post a Comment