javascript get len of array code example
Example 1: length of an array javascript
const clothing = ['shoes', 'shirts', 'socks', 'sweaters'];
console.log(clothing.length);
// expected output: 4
Example 2: javascript size array
let array = [1, 2, 3];
console.log(array.length);