
Array.length (Array.prototype.length)란?
const clothing = ['shoes', 'shirts', 'socks', 'sweaters'];
console.log(clothing, clothing.length);
// Expected output: 4
clothing.length = 1;
console.log(clothing, clothing.length);
// Expected output: Array ["shoes"] 1
Set.prototype.size란?
var mySet = new Set();
mySet.add(1);
mySet.add(5);
mySet.add('some text')
mySet.size; // 3