Instance
noun
say it: “IN-stunss” /ˈɪnstəns/
One object built from a class, with its own copy of the data, such as one ship made from the Ship class.
What is Instance in JavaScript?
Instance — One object made from a class, with its own data.
class Book {
constructor(title) {
this.title = title;
}
}
const guide = new Book("JavaScript");
In a sentence
- “Each instance of Pet has its own name, so changing Mochi's age doesn't touch Pepper's.”
Level: Journeyman · More JavaScript terms at this level
Updated