I am having tough time understanding the meaning of Instance properties
For example in Firefox ES6 Class document it says https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Classes
Instance properties
Instance properties must be defined inside of class methods
class Rectangle {
constructor(height, width) {
this.height = height;
this.width = width;
}
}
I just see this as a class with constructor, so what do they mean by instance properties?
person, then you want thenameproperty of that to hold a different value for each person instance you create … Opposed to that would be a static property, one that all instances share.