Help! Using Objects for Lookups

I think my code is right but it says it isnt…

Your code so far


// Setup
function phoneticLookup(val) {
  var result = "";

var lookup = {
   "alpha": "Adams",
    "bravo": "Boston",
    "charlie": "Chicago",
    "delta": "Denver",
    "echo": "Easy",
    "foxtrot": "Frank"
  };

  // Only change code above this line
  return result;
}

// Change this value to test
phoneticLookup("charlie");

Your browser information:

User Agent is: Mozilla/5.0 (Macintosh; Intel Mac OS X 10_13_6) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/70.0.3538.102 Safari/537.36.

Link to the challenge:
https://learn.freecodecamp.org/javascript-algorithms-and-data-structures/basic-javascript/using-objects-for-lookups

Your code is not right. Your function always returns an empty string.

what does that mean? / how do I fix it?

You have result declared here, but then you don’t change it so when you use return result only an empty string is returned. What does the challenge ask from you? What you can do to change result to get that?

I honestly don’t know… I tried taking away the “”; to put the result of the code in extra {} brackets contained in result but that’s not right either

After you have created the lookup object you need to do something with it to get the result asked there.
And so you write: result = ... putting something instead of the dots using lookup object

okay thank you i’ve just worked it out from that! the wording was just pretty confusing on the challenge and the explanation was unclear also