1function switchOfStuff(val) {
2
3 var answer = "";
4
5 switch(val){
6 case "a":
7 answer = "apple";
8 break;
9 case "b":
10 answer = "bird";
11 break;
12 case "c":
13 answer = "cat";
14 break;
15 default:
16 answer = "stuff";
17 break;
18 }
19
20 return answer;
21}
22
23switchOfStuff(1);