in JavaScript by
Q:
How can you create an Array in JavaScript?

1 Answer

0 votes
by
You can define arrays using the array literal as follows −

var x = [];

var y = [1, 2, 3, 4, 5];
Click here to read more about JavaScript
Click here to read more about Insurance

Related questions

+1 vote
asked Jul 16, 2019 in JavaScript by Indian
0 votes
asked Jan 9 in JavaScript by SakshiSharma
+1 vote
asked Jul 16, 2019 in JavaScript by Indian
+1 vote
asked Dec 4, 2019 in JavaScript by SakshiSharma
0 votes
asked Dec 3, 2019 in JavaScript by rajeshsharma
...