--- id: 56533eb9ac21ba0edf2244df title: Multiple Identical Options in Switch Statements challengeType: 1 videoUrl: '' localeTitle: Múltiplas Opções Idênticas em Instruções de Comutação --- ## Description undefined ## Instructions
Escreva uma instrução switch para definir a answer para os seguintes intervalos:
1-3 - "baixo"
4-6 - "Mid"
7-9 - Nota "Alta"
Você precisará ter uma declaração de case para cada número no intervalo.
## Tests
```yml tests: - text: sequentialSizes(1) deve retornar "Low" testString: 'assert(sequentialSizes(1) === "Low", "sequentialSizes(1) should return "Low"");' - text: sequentialSizes(2) deve retornar "Low" testString: 'assert(sequentialSizes(2) === "Low", "sequentialSizes(2) should return "Low"");' - text: sequentialSizes(3) deve retornar "Low" testString: 'assert(sequentialSizes(3) === "Low", "sequentialSizes(3) should return "Low"");' - text: sequentialSizes(4) deve retornar "Mid" testString: 'assert(sequentialSizes(4) === "Mid", "sequentialSizes(4) should return "Mid"");' - text: sequentialSizes(5) deve retornar "Mid" testString: 'assert(sequentialSizes(5) === "Mid", "sequentialSizes(5) should return "Mid"");' - text: sequentialSizes(6) deve retornar "Mid" testString: 'assert(sequentialSizes(6) === "Mid", "sequentialSizes(6) should return "Mid"");' - text: sequentialSizes(7) deve retornar "High" testString: 'assert(sequentialSizes(7) === "High", "sequentialSizes(7) should return "High"");' - text: sequentialSizes(8) deve retornar "High" testString: 'assert(sequentialSizes(8) === "High", "sequentialSizes(8) should return "High"");' - text: sequentialSizes(9) deve retornar "High" testString: 'assert(sequentialSizes(9) === "High", "sequentialSizes(9) should return "High"");' - text: Você não deve usar nenhuma instrução if ou else testString: 'assert(!/else/g.test(code) || !/if/g.test(code), "You should not use any if or else statements");' - text: Você deve ter nove declarações de case testString: 'assert(code.match(/case/g).length === 9, "You should have nine case statements");' ```
## Challenge Seed
```js function sequentialSizes(val) { var answer = ""; // Only change code below this line // Only change code above this line return answer; } // Change this value to test sequentialSizes(1); ```
## Solution
```js // solution required ```