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

JavaScript JavaScript Foundations Objects Basic Objects

Stuck with a challenge in JS Foundations. Please help

Add to the 'me' object a key of "age" and set it to your age, not as a string, but a number.

any chance you could post your code?

What do you have so far?

2 Answers

Try something like this! :D

var me = {
   name: "Erik Krieg",
};

me.age = 23; 
// or you could do
me["age"] = 23;

Thanks, recently I revised again the video and I can understand the answer. Thanks everybody for the help.