What is the problem here?


#1

/*jshint multistr:true */
var text = "Oi,meu nome é Carlos Dantas,\
estou a aprender a programar. Carlos.";
var myName = "Carlos";
var hits = [];
for (var i=0; i < text.length; i++);
if (text[i] === "C"); {
for (var j=i; j < i+myName.length; j++);{
hits.push(text[j]);
console.log(text[j]);
}};


#2

No clue, you'll have to explain what it's doing differently from what you want


#3

Are you in the section of "your second for-loop"??


#4

Hello everyone. I think I see your problem. If you still in Your second "for" loop, remove the console.log(text[j]); then press Save and Submit Code. If it still doesn't work, well, that's all I see.