Created
July 29, 2019 22:11
-
-
Save parzibyte/f94bbd784181d0bc10ef117ac531a5a4 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 = ["perro", "gato", "ballena", "vaca", "burro"], | |
busqueda = "gato"; | |
console.log("Tenemos el arreglo: ", arreglo); | |
console.log("Buscando ", busqueda); | |
let indice = arreglo.indexOf(busqueda); | |
console.log("El elemento buscado está en el índice ", indice); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment