Like the previous chapters, we will spend some time discussing the style considerations while creating arrays.
// bad const items = new Array(); // good const items = [];
Array#push
instead of a direct assignment to add items to an array:const stack = []; // bad stack[stack.length] = 'pushme'; // good stack.push('pushme');