Welcome to the Treehouse Community

The Treehouse Community is a meeting place for developers, designers, and programmers of all backgrounds and skill levels to get support. Collaborate here on code errors or bugs that you need feedback on, or asking for an extra set of eyes on your latest project. Join thousands of Treehouse students and alumni in the community today. (Note: Only Treehouse students can comment or ask questions, but non-students are welcome to browse our conversations.)

Looking to learn something new?

Treehouse offers a seven day free trial for new students. Get access to thousands of hours of content and a supportive community. Start your free trial today.

JavaScript

Andrew Cottage
Andrew Cottage
20,536 Points

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.