Welcome to the Treehouse Community
Want to collaborate on code errors? Have bugs you need feedback on? Looking for an extra set of eyes on your latest project? Get support with fellow developers, designers, and programmers of all backgrounds and skill levels here with the Treehouse Community! While you're at it, check out some resources Treehouse students have shared here.
Looking to learn something new?
Treehouse offers a seven day free trial for new students. Get access to thousands of hours of content and join thousands of Treehouse students and alumni in the community today.
Start your free trialSamuel Fortunato
20,229 PointsWas able to complete the challenge by setting the 'hobbies' variable to a single object's 'hobbies' property
Was SERIOUSLY stuck on this one. In fact, I still don't know how to do it. But I was able to "trick" the task by typing this:
hobbies = customers[0].personal.hobbies;
Didn't use reduce, and hobbies
doesn't equal what it's supposed to. A bug, yeah?
Also, can I have my progress removed on this challenge? I didn't complete the challenge legitimately (on accident). I feel dirty.
const customers = [
{
name: "Tyrone",
personal: {
age: 33,
hobbies: ["Bicycling", "Camping"]
}
},
{
name: "Elizabeth",
personal: {
age: 25,
hobbies: ["Guitar", "Reading", "Gardening"]
}
},
{
name: "Penny",
personal: {
age: 36,
hobbies: ["Comics", "Chess", "Legos"]
}
}
];
let hobbies;
// hobbies should be: ["Bicycling", "Camping", "Guitar", "Reading", "Gardening", "Comics", "Chess", "Legos"]
// Write your code below
1 Answer
Steven Parker
231,269 PointsThat sure sounds like a bug to me. I suggest you report it to the Support folks, who are also the only people who can reset progress.
But you could also just pass the challenge legitimately and be "square".