const fruits = [{a: 1}, {b: 2}, {c: 3}];
fruits.length = 5;
console.log(fruits); // [ 'Apple', 'Orange', 'Strawberry', <2 empty items> ]