cara menambahkan beberapa objek ke dalam array di javascript

var arr = [{firstname: "John", lastname: "Smith"}];
arr= [...arr, {firstname: "Name1", lastname: "LName"}]
Md.Mainul Islam