Constructor Functions
const Person = function (firstname, lastname, birthYear) {
this.firstname = firstname;
this.lastname = lastname;
this.birthYear = birthYear;
};
const levin = new Person('Levin', 'Bänninger', 2007);
const matilda = new Person('Matilda', 'Johnson', 2009);
const jay = new Person('Jay', 'Smith', 2010);
console.log(levin, matilda, jay);instanceof
instanceofPrototype
__proto__
__proto__Statische Methoden
Vererbung
Last updated