const clothes = [ 'jacket', 't-shirt' ];
clothes.length = 0;
console.log(clothes[0]);
Ответ: undefined
JavaScript test | #JavaScript & Max
JA JavaScript test @js_test · 9.74K subscribers
const clothes = [ 'jacket', 't-shirt' ];
clothes.length = 0;
console.log(clothes[0]);