Posts by Marilia Curi • 21 points
1 post
-
2
votes6
answers1811
viewsA: Loop Array - Fruit
My code went like this: var listaDeFrutas = ["Uva", "Banana", "Manga", "Cajá", "Pinha"] var busca = "Cajá" for (i=0;i<listaDeFrutas.length;i++) if(listaDeFrutas[i]==busca){ console.log("Sim,…