0

I'm trying to declare an empty array and was just wondering if there are any fundamental differences between these two ways of declaring an empty array.

Can someone please explain the difference between these two:

var myArray = [];

and

var myArray = new Array();

Thanks in advance!

3

0

Start asking to get answers

Find the answer to your question by asking.

Ask question

Explore related questions

See similar questions with these tags.