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