It's happening again!

The following code doesn’t work:


 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"))+

This time I’d deactivated the adblocker and I’ve checked the solution in doubt.

Thank you in advance for the help again!
Keep in touch!

  **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 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/93.0.4577.63 Safari/537.36

Challenge: Using Objects for Lookups

Link to the challenge:

Typo

4 Likes