-
-
Save parzibyte/bce272836d9768e201669c6d9246dada 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
const arreglo = [1, 2]; | |
console.log("Antes de agregar es: " + arreglo); // 1,2 | |
arreglo.push(3, 4); | |
console.log("Después de agregar dos elementos es: " + arreglo); // 1,2,3,4 | |
arreglo.push(5); | |
console.log("Después de agregar un elemento es: " + arreglo); // 1,2,3,4,5 |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment