5 ways of creating an Array in JavaScript
1. Explicitly
Using the square bracket notation. This is probably the most common way of creating an Array.
const arr = [1, 2, 3];
2. Destructuring another array
Using the ES6 notation you can create a copy of another array. Specially useful in func...
marcostl.hashnode.dev2 min read