📜  如何将对象附加到 javascript 列表? - Javascript代码示例

📅  最后修改于: 2022-03-11 15:02:35.699000             🧑  作者: Mango

代码示例1
var studentList = ['Jason', 'Samantha', 'Alice', 'Joseph'];

//Add a new student to the end of the student list
studentList.push('Jacob');
//list is updated to ['Jason', 'Samantha', 'Alice', 'Joseph', 'Jacob'];