1const person = { 2 name: "Lydia Hallie", 3 hobbies: ["coding"] 4}; 5 6function addHobby(hobby, hobbies = person.hobbies) { 7 hobbies.push(hobby); 8 return hobbies; 9} 10 11addHobby("running", []); 12addHobby("dancing"); 13addHobby("baking", person.hobbies); 14 15console.log(person.hobbies);
本题为“单选题”