// Setup
function phoneticLookup(val) {
var result = "";
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("charlie");
Your browser information:
User Agent is: Mozilla/5.0 (Macintosh; Intel Mac OS X 10_13_6) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/70.0.3538.102 Safari/537.36.
You have result declared here, but then you don’t change it so when you use return result only an empty string is returned. What does the challenge ask from you? What you can do to change result to get that?
After you have created the lookup object you need to do something with it to get the result asked there.
And so you write: result = ... putting something instead of the dots using lookup object