--- id: 56533eb9ac21ba0edf2244dd title: Selecting from Many Options with Switch Statements challengeType: 1 videoUrl: '' localeTitle: '' --- ## Description undefined ## Instructions undefined ## Tests
```yml tests: - text: '' testString: 'assert(caseInSwitch(1) === "alpha", "caseInSwitch(1) should have a value of "alpha"");' - text: '' testString: 'assert(caseInSwitch(2) === "beta", "caseInSwitch(2) should have a value of "beta"");' - text: '' testString: 'assert(caseInSwitch(3) === "gamma", "caseInSwitch(3) should have a value of "gamma"");' - text: '' testString: 'assert(caseInSwitch(4) === "delta", "caseInSwitch(4) should have a value of "delta"");' - text: '' testString: 'assert(!/else/g.test(code) || !/if/g.test(code), "You should not use any if or else statements");' - text: '' testString: 'assert(code.match(/break/g).length > 2, "You should have at least 3 break statements");' ```
## Challenge Seed
```js function caseInSwitch(val) { var answer = ""; // Only change code below this line // Only change code above this line return answer; } // Change this value to test caseInSwitch(1); ```
## Solution
```js // solution required ```