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