Help! Profile Lookup Challenge (Basic Javascript)

Help! Profile Lookup Challenge (Basic Javascript)
0

#1

Can anyone tell me what’s wrong with my code? I can’t seem to figure it out :confused:


#2


#3

What you want to do is go through all of your array elements, check if they meet your requirements and return those which do.

So you need to use normal for loop:

for (var i = 0; i < array.length; i++) { if(array[i] === param...); }

W


#4

I had the exact same problem. Look where you put ‘No such property’ line!