Basic Javascript (102/111) | Profile Lookup | freeCodeCamp

Published: 09 December 2020
on channel: Stral Tech
1,322
10

Basic Javascript (102/111) | Profile Lookup | freeCodeCamp

Full playlist 👉    • Basic JavaScript (1/111) | Comment Yo...  

We have an array of objects representing different people in our contacts lists.
A lookUpProfile function that takes name and a property (prop) as arguments has been pre-written for you.
The function should check if name is an actual contact's firstName and the given property (prop) is a property of that contact.
If both are true, then return the "value" of that property.
If name does not correspond to any contacts then return "No such contact".
If prop does not correspond to any valid properties of a contact found to match name then return "No such property".

https://www.freecodecamp.org/learn/ja...

basic javascript,learn javascript,Profile Lookup,freeCodeCamp,free code camp,stral tech


Watch video Basic Javascript (102/111) | Profile Lookup | freeCodeCamp online without registration, duration hours minute second in high quality. This video was added by user Stral Tech 09 December 2020, don't forget to share it with your friends and acquaintances, it has been viewed on our site 1,322 once and liked it 10 people.