Created
August 25, 2015 11:39
-
-
Save rpearce/517909fcd369136fba4a to your computer and use it in GitHub Desktop.
Teaching Switches
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
var str = "great minds think alike"; | |
var output = []; | |
str.split('').forEach(function(letter) { | |
switch (letter) { | |
// your code here | |
} | |
}); | |
output.join(''); // should be "grtmndsthnklk" |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment