August 2016
Beginner to intermediate
847 pages
17h 28m
English
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');