Tell us what’s happening:
Describe your issue in detail here.
I’ve converted a switch case statement to an object but there seems to be a problem. Any hints??
**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",
};
// Only change code above this line
return result;
}
phoneticLookup("charlie");
**Your browser information:**
User Agent is: Mozilla/5.0 (Linux; U; Android 9; MRD-LX1F Build/HUAWEIMRD-LX1F; wv) AppleWebKit/537.36 (KHTML, like Gecko) Version/4.0 Chrome/86.0.4240.185 Mobile Safari/537.36 OPR/52.1.2254.54298
Challenge: Using Objects for Lookups
Link to the challenge: