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