JavaScript Question 11
Question 11 of 0JavaScript
What's the output?
Code:
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());Select the correct option:
Question discussion
(0)Join the discussion — login to comment and help other developers.
Login to comment