create initial empty array javascript with type code example Example: create an empty array js let arrayName = [];