Posts by Karine Kerr • 21 points
2 posts
-
0
votes3
answers799
viewsA: Print different data from an array according to the element value
As in the exercise asked the use of continue, did so var familia = ["Joana", "Felipe", "Gabriela", "Carlos", "Pedro", "Bruno"] for (var i = 0; i < familia.length; i++){ if(familia [i] == "Pedro")…
-
1
votes6
answers1811
viewsA: Loop Array - Fruit
I did it and it worked var listaDeFrutas = [ "Uva", "Banana", "Manga", "Cajá", "Pinha"] var busca = "Cajá" for (var i = 0; i < listaDeFrutas.length; i++){ if(listaDeFrutas[i] == busca) {…