'for' nao esta enviando valores para o array hits


#1

Oops, tente outra vez. Parece que seu segundo laco 'for' nao esta enviando valores para o array hits. Tenha certeza de que ele esta funcionando corretamente e que o texto de myName's text aparece em algum lugar na variavel text

`
/*jshint multistr:true */
var text = ["algo", "algo", "algo", "algo"];
var myName = "Vinicius";
var hits =[];
for(i=0;i if(text[i]==="V"){
for(var j=i;text+myName.length;i++){
newArray = [];
newArray.push('alo');
newArray[0];
}
}
}


#2

This is not a text expression, but an array. What is more, it does not contain your name.

Ce n'est pas une expression de texte, mais une liste. Qui plus est, il ne contient pas votre nom.

The code is definitely not right. Suggest go back to the beginning and study the example in lesson 1, and redo your code in each step.

Le code est certainement pas juste. Suggérer revenir au début et à étudier l'exemple dans la leçon 1, et refaire votre code à chaque étape.


#3

This topic was automatically closed 7 days after the last reply. New replies are no longer allowed.