Basic JavaScript - Using Objects for Lookups

Tell us what’s happening:

I do not understand the following part of quiz, when it says

Use it to look up val and assign the associated string to the result variable.
so I did this in the end of object, but it is wrong.


Your code so far

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

  // Only change code below this line
  const lookup = {
  // Only change code above this line
  return result;


Your browser information:

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

Challenge Information:

Basic JavaScript - Using Objects for Lookups

You access this value and then don’t do anything with it. You need to return this value.

yea I was trying to figure it out, totally forget we can assign it to result