How to Create an Empty Array in JavaScript?
There are two ways in Javascript you can create a new empty array.
Simple declaration method
Constructor method
Most people use the simple declaration method to construct a new array. It’s fast and efficient.
const myArray = [];
However, if you a...
blog.arnabghosh.me3 min read