Tell us what’s happening:
Hi friends, could you help me look at this. Can’t understand why test failed.
Your code so far
// Setup
function phoneticLookup(val) {
var result = "";
// Only change code below this line
result={
"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:
Your Browser User Agent is: Mozilla/5.0 (Windows NT 6.1) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/66.0.3359.139 Safari/537.36
.
Link to the challenge:
https://www.freecodecamp.org/challenges/using-objects-for-lookups