Created
March 7, 2020 16:29
-
-
Save parzibyte/a45e1c12e209f4614a4bc25eab93ce4b 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
let arreglo = ["Luis", "Parzibyte"]; | |
// Eliminar referencia con slice, extrayendo | |
let otroArreglo = arreglo.slice(); | |
arreglo[0] = "Luis Cabrera"; | |
console.log("arreglo: ", arreglo); | |
console.log("otroArreglo: ", otroArreglo); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment