JavaScript Array.of()
JavaScript Array.of() Summary: in this tutorial, you will learn how to improve array construction using the JavaScript Array.of() method in ES6. Introduction to the JavaScript Array.of() method In ES5, when you pass a number to the Array constructor, JavaScript creates an array whose length equals the number. For example: let numbers = new Array(2); console.log(numbers.length);…
Read more