Using Objects for Lookups problem

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
  **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:

The f from frank should be a capital letter.

This topic was automatically closed 182 days after the last reply. New replies are no longer allowed.