Oct 19, 2019 in JavaScript
Q: How can you create an Array in JavaScript?

1 Answer

0 votes
Oct 19, 2019
You can define arrays using the array literal as follows −

var x = [];

var y = [1, 2, 3, 4, 5];

Related questions

0 votes
Mar 20 in JavaScript
0 votes
Sep 19 in JavaScript
...