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

► Click here to show 1 Answer

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

var x = [];

var y = [1, 2, 3, 4, 5];
JavaScript
Learn More with Madanswer

Related questions

0 votes
asked Feb 6, 2020 in JavaScript by rajeshsharma
...