📜  如何在数组中追加对象javascript代码示例

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

代码示例2
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'];