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