Skip to content

Instantly share code, notes, and snippets.

@jastuccio
Created October 3, 2016 15:29
Show Gist options
  • Save jastuccio/2338b3300b268781952ad3500cb02c91 to your computer and use it in GitHub Desktop.
Save jastuccio/2338b3300b268781952ad3500cb02c91 to your computer and use it in GitHub Desktop.
pipe npm install to log.txt
// Setup
function phoneticLookup(val) {
var result = "";
// Only change code below this line
var lookup = {
"alpha":"Adams",
"bravo":"Boston",
"charlie":"Chicago",
"delta":"Denver",
"echo":"Easy",
"foxtrot":"Frank"
};
result = lookup[val];
// Only change code above this line
return result;
}
// Change this value to test
phoneticLookup("charlie");
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment