Using object for look up

Tell us what’s happening:
i have converted the switch statement into an object as instructed but i am getting an error message that reads “lookup not defined”
how do i properly define it ?

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"
var value ="alpha"

// Only change code above this line
return result;


Your browser information:

User Agent is: Mozilla/5.0 (Windows NT 6.3; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/80.0.3987.132 Safari/537.36.

Challenge: Using Objects for Lookups

Link to the challenge:

You are not using the parameter val to do the lookup with and you are not assigning the lookup value to result (assign it before the return).

Edit: also just to be clear phoneticLookup["alpha"] is not how you call a function. You call it using parentheses phoneticLookup("alpha") (not that the challenge requires you to call the function)