I need help in Search a Friend (Contact List)


#1

Hello everybody!! I'm stuck on 'Search a friend' in 'Contact List'. This is my code: https://gist.github.com/125f6f270dcb98494bd9e6c81aa566c2
When I run it, it prints out THREE time the object "Steve", then once - "Bill" and again "Steve".... Could anybody, please, tell me what's the problem in?


#2

are you stuck or do you have a question about the output? The exercise needs to validates the code works correctly, so it calls the function (behind the scenes), this will cause output, see what happens when you run it outside codecademy, then it shows the output fine


#3

Yes, I'm confused with the output. Could you, please, tell me where is it possibile to try it outside codeacademy online and without registration? Thanks!


#4

outside codecademy is clickable? This will take you jsbin where you can run your code


#5

Yes, I did it. I can insert my code, but I don't understand how to run it and where to are the result!


#6

make sure you have the javascript and console tab open.

there is a run button in the top right corner


#7

Yes, I've done it. It means that my code is correct??


#8

yep, your code is correct. The output is caused by codecademy doing valdition on your code. Did you figure out jsbin?


#9

Yes! Just in jsbin I've seen that it functions as needed.


#10

Well, thank you so much for your fast and detalied help. And for JSBIN )


#11

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