find array length code example
Example 1: typescript array count
const clothing = ['shoes', 'shirts', 'socks', 'sweaters'];
console.log(clothing.length);
// expected output: 4
Example 2: get length of array
// In Javascript
var x = [1,2,3];
console.log(x.length);