Skip to main content

JavaScript Question 105

Question 105 of 0JavaScript

What's its value?

Login Required

Please login to select answers and solve this question. You can view the question without logging in.

Code:
function compareMembers(person1, person2 = person) {
  if (person1 !== person2) {
    console.log('Not the same!');
  } else {
    console.log('They are the same!');
  }
}

const person = { name: 'Lydia' };
compareMembers(person);

Select the correct option: