how to create object inside array in javascript code example Example: js objects in array let car = cars.find(car => car.color === "red");