Categories

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

1 Answer

Oct 19, 2019
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

Madanswer
Jul 16, 2019 in JavaScript
Dec 3, 2019 in JavaScript
Oct 22 in JAVA
...