Sobes.tech
Junior — Senior

What result will console.log output when calling getFullName on the created object

livecode

Task condition

Predict what will be printed to the console after executing the following JavaScript code.

 function Person(firstName, lastName) {
    this.firstName = firstName;
    this.lastName = lastName;

}

const member = new Person('Example1', 'Example2');
Person.getFullName = function () {
    return `${this.firstName} ${this.lastName}`;
}

console.log(member.getFullName());
// ??