Difference between reference and instance in javascript

Viewed 19679

Sometimes I hear people say "a reference to a object" and some say "a instance of a object" What is the difference?

8 Answers

The actual English language definition of 'instance' and 'reference.'

instance: an example or single occurrence of something.

reference: the action of mentioning.

So taking these two definitions of the actual words into consideration and applying it to a JavaScript scenario you can understand how each concept fits.

Related