Hey,
been doing this one, and got somehow stuck.
I know not to modify the return statement, but altering the result var somehow didn’t do it …
Ideas, anyone ?
Your code so far
// Setup
function phoneticLookup(val) {
var result = lookup[val];
var lookup = {
"alpha" : "Adams",
"bravo" : "Boston",
"charlie" : "Chicago",
"delta" : "Denver",
"echo" : "Easy",
"foxtrot" : "Frank"
};
// Only change code above this line
return result;
}
// Change this value to test
phoneticLookup("delta");
Your browser information:
User Agent is: Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/71.0.3578.98 Safari/537.36
.