main.js
1
2
3
4
5
const originalArray = [1,2,3,4,5,6,7,8,9,10,11,12];

const newArray = originalArray.slice(4-3, 4);

console.log(newArray);
Native Browser JavaScript