My search function does not return contact information about steve? not sure whats wrong here


#1


Can anyone tell me what is wrong here?


#2

Doesn't look to me like your code matches what's printed in the console, did you change it after clicking run?

If you already know the key, then you don't need to look through the object, testing if each key is equal to your key and only then use your key.

The instructions/error say nothing about printing. How do they say that the result should be presented?


#3

I think you should pass the argument 'steve' in search function..when you call the function later

search('steve');