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 trial
Bill Mauro
1,621 PointsMethods Code Challenge
Struggling with the code challenge here. Should I not just set the method "greet" in each object to andrew.genericGreet and ryan.genericGreet respectively?
I wish there was more in the way of a hint; "Bummer! Null." isn't overly helpful.
1 Answer
Richard Duncan
5,568 PointsYou need to add a greet key to andrew and ryan and set the value to the genericGreet function. So if it was me: -
var rich = {
name: "Richard",
greet: genericGreet
}
Richard Duncan
5,568 PointsRichard Duncan
5,568 PointsUpdated as answer.