Hacks for Creating JavaScript Arrays - freeCodeCamp.org
https://www.freecodecamp.org/news/https-medium-com-gladchinda-hacks-for-creating-javascript-arrays-a1b80cb372b/
The most popular method for creating arrays is using the array literal syntax, which is very straightforward. However, when you want to dynamically create arrays, the array literal syntax may not always be the best method. An alternative method is using the Array constructor. Here is a simple code snippet showing the use of the Array constructor.
DA: 69 PA: 25 MOZ Rank: 76