Using Objects for Lookups/ I've even copied and past the code from the video hoping that would help to no avail. Please help!

Tell us what’s happening:
Describe your issue in detail here.

  **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_15_7) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/90.0.4430.212 Safari/537.36

Challenge: Using Objects for Lookups

Link to the challenge:

Hi @willjbarg !

You have a typo here

Read the error message very carefully
phoneticLookup("foxtrot") should equal the string Frank

Thank you so very much. It’s usually the little things that you need the watchful eye for. Your the best.

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