Comment ajouter plusieurs objets dans le tableau en javascript

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