function Person(firstName, lastName) { this.firstName = firstName; this.lastName = lastName;}const member = new Person("Lydia", "Hallie");Person.getFullName = function () { return `${this.firstName} ${this.lastName}`;}console.log(member.getFullName());
A: TypeError
B: SyntaxError
C: Lydia Hallie
D: undefined undefined
参考答案: