Draft
Switch
240 of 283user2704216
Description:
Write a function caseInSwitch which uses a switch statement to test the variable val and sets the variable answer according to the following values of val: 1 - "alpha" 2 - "beta" 3 - "gamma" 4 - "delta"
Then, test caseInSwitch for the argument 1 and print the value of answer to the console.
Similar Kata:
Stats:
Created | Nov 28, 2016 |
Warriors Trained | 421 |
Total Skips | 55 |
Total Code Submissions | 576 |
Total Times Completed | 283 |
JavaScript Completions | 240 |
Ruby Completions | 50 |
Total Stars | 0 |
% of votes with a positive feedback rating | 59% of 129 |
Total "Very Satisfied" Votes | 61 |
Total "Somewhat Satisfied" Votes | 29 |
Total "Not Satisfied" Votes | 39 |
Total Rank Assessments | 135 |
Average Assessed Rank | 7 kyu |
Highest Assessed Rank | 6 kyu |
Lowest Assessed Rank | 8 kyu |