Using objects for lookup in js

Can anyone kindly explain why this code has refused to Run

   **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"
 }
return = lookup[val];

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

phoneticLookup("charlie");
   **Your browser information:**

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

Challenge: Using Objects for Lookups

Link to the challenge:

you can’t assign to the return, this is not valid syntax

It was a complete oversight, thank you.

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