HELP! Lookups, I think, hate me

I have no idea what I’m doing wrong. The CODE looks right to me

// Setup
function phoneticLookup(val) {
  let 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;
}

phoneticLookup("charlie");

Your browser information:

User Agent is: Mozilla/5.0 (Macintosh; Intel Mac OS X 10_15_7) AppleWebKit/605.1.15 (KHTML, like Gecko) Version/15.3 Safari/605.1.15

Challenge: Using Objects for Lookups

Link to the challenge:

Works for me. Are you getting any errors in the console pane?

No errors. Just no advancing. Maybe I need to restart the window…

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