Check out example codes for "typescript array count". It will help you in understanding the concepts better.

Code Example 1

const clothing = ['shoes', 'shirts', 'socks', 'sweaters'];

console.log(clothing.length);
// expected output: 4

Learn ReactJs, React Native from akashmittal.com