function Person() {
console.log(this);
this.firstname = 'John';
this.lastname = 'Doe';
console.log(this);
}
let john = new Person();
function Person() {
console.log('before', this.firstname, this.lastname);
this.firstname = 'John';
this.lastname = 'Doe';
console.log('after', this.firstname, this.lastname);
}
let john = new Person();