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

Question: What is an instance in javascript?

what is a instance in ES6? Is it different than a instance in regular javascript? Is it similar to a argument within a function?

2 Answers

Instance == object. It might be a little more correct to say an instance is an object created by a constructor (instance of a class), but JavaScript was always a bit loose about object creation.

thanks. that clears things up alot.