const numbers = [0, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10];
console.log(numbers.slice(3, 8));
console.log(numbers.slice().reverse());
console.log(numbers);
[ 3, 4, 5, 6, 7 ]
[ 10, 9, 8, 7, 6, 5, 4, 3, 2, 1, 0 ]
[ 0, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10 ]
const letras = ["a", "b", "c", "d", "e", "f", "g", "h", "i", "j", "k"];
console.log(letras.slice(3, 8));
console.log(letras.slice().reverse());
console.log(letras);
[0, 1, 2, 3, 4, 5, 6, 7, …]
["d", "e", "f", "g", "h"]
["k", "j", "i", "h", "g", "f", "e", "d", …]