const arr = [10, 20, 30];
const [first, ...middle, last] = arr;
console.log(first, last);
WebDEV #test #Frontend
Выберите правильный вариант 👇🏼
WE WebDEV @webb_dev · 8.3K subscribers const arr = [10, 20, 30];
const [first, ...middle, last] = arr;
console.log(first, last);