define array size typescript code example Example: size of array typescript console.log(clothing.length);