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!
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

Michael Paccione
9,017 PointsStage 6 Objects Methods 3 Challenge Task 1 of 1
Challenge task 1 of 1
On 'andrew' and 'ryan', set the 'greet' method as the 'genericGreet' function.
Bummer! There was an error with your code: SyntaxError: Parse error
var genericGreet = function() {
return "Hello, my name is " + this.name;
}
var andrew = {
name: "Andrew"
greet: genericGreet
}
var ryan = {
name: "Ryan"
greet: genericGreet
}
1 Answer

Michael Paccione
9,017 PointsNevermind I simply forgot the commas after the key name values. -.-'