const list = [12, 5, 80, 34];
const newList = list.slice(1, 3);
alert(newList);  // 5,80