typescript array type declaration code example
Example 1: typescript array count
const clothing = ['shoes', 'shirts', 'socks', 'sweaters'];
console.log(clothing.length);
// expected output: 4
Example 2: type script array
let list: number[] = [1, 2, 3];