can someone tell me what is wrong with the code pls it keeps on saving
phoneticLookup(“foxtrot”)should equal the string Frank but I can’t find what is wrong
**Your code so far**
// 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
console.log(phoneticLookup("foxtrot"));
**Your browser information:**
User Agent is: Mozilla/5.0 (Macintosh; Intel Mac OS X 10_14_6) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/91.0.4472.164 Safari/537.36
Challenge: Using Objects for Lookups
Link to the challenge: