Assignments 5, 6 and 7.

Lucas,
I believe I've done what you requested.  Please let me know if I've done something incorrectly.

Thanks for all of your assistance.  I really do appreciate it.

Best regards,
Terry
Hi Lucas!

Thanks for looking at my code.  The parent property of the object is just the name of the parent.  So the parentNames object should only be holding the name of parents.  Am I wrong?

Thanks,
Terry



________________________________
 From: Lucas Cotner <notifications@github.com>
To: codefellows/sea-c16-javascript <sea-c16-javascript@noreply.github.com> 
Cc: terrydievendorf <terrydievendorf@yahoo.com> 
Sent: Saturday, August 9, 2014 10:28 AM
Subject: Re: [sea-c16-javascript] Assignments 5, 6 and 7. (#244)
 


In students/terrydievendorf/Assignment5And6.js:
> +    if (people[i].age>oldestAge) {
> +      oldestAge=people[i].age;
> +      name=people[i].name;
> +    }
> +  }
> +  return name;
> +}
> +
> +getParentNames = function(people) {
> +  parentNames=[];
> +  for (i=0;i<people.length;i++) {
> +    if (people[i].hasOwnProperty("parent")) {
> +      parentNames.push(people[i].parent);
> +    }
> +  }
> +  return parentNames; 
Same thing here; can we get the Parent names only?
—
Reply to this email directly or view it on GitHub.