You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
"Get a hint" on freecodecamp is down (error 500 - internal server error), so I found this github page.
Unfortunately the solution given does not work / is not accepted by fcc, but this does
functionlookUpProfile(firstName,prop){// Only change code below this linefor(vari=0;i<contacts.length;i++){if(contacts[i].firstName===firstName){if(contacts[i].hasOwnProperty(prop)){returncontacts[i][prop];}else{return"No such property";}}}return"No such contact";// Only change code above this line}
I think .some() is not known to beginners at that point.
The text was updated successfully, but these errors were encountered:
Lookup Challenge
"Get a hint" on freecodecamp is down (error 500 - internal server error), so I found this github page.
Unfortunately the solution given does not work / is not accepted by fcc, but this does
I think
.some()
is not known to beginners at that point.The text was updated successfully, but these errors were encountered: