// Creating a blueprint
class Person {
constructor(firstName, lastName) {
this.firstName = firstName;
this.lastName = lastName;
}
fullName() {
console.log(`${this.firstName} ${this.lastName}`);
}
}
const batman = new Person('Bruce', 'Wayne');
const robin = new Person('Dick', 'Grayson');