3 ways to declare array in js code example
Example 1: array ub js
var fruits = ['Apple', 'Banana'];
Example 2: array in js
function Array() { return []; }
alert(Array(1, 2, 3)); // An empty alert box
var fruits = ['Apple', 'Banana'];
function Array() { return []; }
alert(Array(1, 2, 3)); // An empty alert box