-
-
Save parzibyte/3547e178f0b6f3027f7a7354e2367708 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
// https://parzibyte.me/blog | |
const arreglo = ["Luis", "María", "Maggie", "Grimm"]; | |
const arregloCortado = arreglo.slice(1, 4); | |
console.log("El arreglo original es: "); | |
console.log(arreglo); | |
console.log("El arreglo cortado es: "); | |
console.log(arregloCortado); | |
/* | |
El arreglo original es: | |
[ 'Luis', 'María', 'Maggie', 'Grimm' ] | |
El arreglo cortado es: | |
[ 'María', 'Maggie', 'Grimm' ] | |
*/ |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment