选择题1396/1530输出什么?

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);
难度:
2021-07-02 创建

本题为单选题”

赞赏支持

预览

题库维护不易,您的支持就是我们最大的动力!