Update 'firstName' parameter changed to 'name'

pull/12754/head
db 2017-01-22 21:59:07 +00:00 committed by Mrugesh Mohapatra
parent 1196093ca2
commit 1aac3c7fec
1 changed files with 5 additions and 5 deletions

View File

@ -5336,11 +5336,11 @@
"title": "Profile Lookup",
"description": [
"We have an array of objects representing different people in our contacts lists.",
"A <code>lookUpProfile</code> function that takes <code>firstName</code> and a property (<code>prop</code>) as arguments has been pre-written for you.",
"The function should check if <code>firstName</code> is an actual contact's <code>firstName</code> and the given property (<code>prop</code>) is a property of that contact.",
"A <code>lookUpProfile</code> function that takes <code>name</code> and a property (<code>prop</code>) as arguments has been pre-written for you.",
"The function should check if <code>name</code> is an actual contact's <code>firstName</code> and the given property (<code>prop</code>) is a property of that contact.",
"If both are true, then return the \"value\" of that property.",
"If <code>firstName</code> does not correspond to any contacts then return <code>\"No such contact\"</code>",
"If <code>prop</code> does not correspond to any valid properties of a contact found to match <code>firstName</code> then return <code>\"No such property\"</code>"
"If <code>name</code> does not correspond to any contacts then return <code>\"No such contact\"</code>",
"If <code>prop</code> does not correspond to any valid properties of a contact found to match <code>name</code> then return <code>\"No such property\"</code>"
],
"releasedOn": "January 8, 2016",
"challengeSeed": [
@ -5373,7 +5373,7 @@
"];",
"",
"",
"function lookUpProfile(firstName, prop){",
"function lookUpProfile(name, prop){",
"// Only change code below this line",
"",
"// Only change code above this line",