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

Objects, Methods and Prototypes

I am currently trying to learn how these work. It is so confusing right now, but I guess that may be because I’m going to fast? Is anyone else having the same problem? Let’s see if I get this right:

  • An object can hold Keys and Values.
  • A Method is a Function inside of a Key.
  • A Prototype is a kind of like a generic object that can be used by Constructor Functions?

1 Answer

Andrew Chalkley
STAFF
Andrew Chalkley
Treehouse Guest Teacher
  • An object can hold Keys and Values.

    • Correct.
  • A Method is a Function inside of a Key.

  • A Prototype is a kind of like a generic object that can be used by Constructor Functions?

    • Correct.