Second for loop 5


#1

/*jshint multistr:true */

var text = "I love to learn programming";
var myName = "Teja";
var hits = []
for (var i = 0; i < text.length; i++);
{
if(text[i] === 'T')
{
for(var j = i; j<= i + myName.length; j++);
{
hits.push(text[j]);
}
}
}

what is the problem with my code???
Thanks


#2

thats the problem.


#3

@netninja45863

Do you remember having read the instruction before? The text variable should contain your name in a string.