wjat is array.length code example
Example 1: js array of length
//initializes an empty array of length 4
new Array(4);
Example 2: get length of array
// In Javascript
var x = [1,2,3];
console.log(x.length);
//initializes an empty array of length 4
new Array(4);
// In Javascript
var x = [1,2,3];
console.log(x.length);