Skip to content

Instantly share code, notes, and snippets.

View kumquatfelafel's full-sized avatar
👽
Abducted. Back later

kumquatfelafel

👽
Abducted. Back later
View GitHub Profile

Gist for the FreeCodeCamp Profile Lookup Challenge. Instructions as comments. Total: 39 lines. We have an array of objects representing different people in our contacts lists.

Example: var contacts = [ { ... } , { ... } , { ... } , { ... } ];

// A lookUpProfile function that takes
// firstName and a property (prop)
// as parameters has been pre-written for you.
function lookUpProfile(firstName, prop){