Hello Friends 👋,

Welcome To Infinitbility! ❤️

This tutorial will help you to creating an array of objects means multiple objects available in array in javascript.

JavaScript provide push() method to add element in array and today we are going to use it add new object in array.

First we have to create an empty array, and then we have to push new object in an array check below example with Output.

let newArray = [];
console.log("newArray >", newArray);

// adding new object in array
  id: 1,
  name: "infinitbility",
  url: "https://infinitbility.com/"

console.log("newArray >", newArray);


Array, object, Add new data