Your second for loop help


#1

it says my code is good to go and will let me continue but honestly im really confused and it wont show anything in the console

var text = "hey whats up im kalen";
var myName = "kalen";
var hits = [];

for (var i = 0; i < text.length; i++) {
if (text[i] === "k") {
for(var j = i; j < myName.length + i; j++){
hits.push(text[i]);
}
}
}


#2

Don't forget to include log.console()!


#3

console.log() **

I swear I type it backwards every.single.time lol


#4

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