Im lost


#1


https://www.codecademy.com/courses/javascript-beginner-en-XEDZA/0/5?curriculum_id=506324b3a7dffd00020bf661#

My the tab freezes after i send in this code, I don't know what I did wrong

/*jshint multistr:true */
var text = "Butts and such are pretty cool, I guess, but their really wierd looking body parts, by the way my name is Jaimee, (but noone needs to know that cause I am a spy)";
var myName = "Jaimee";
var hits = [];

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


#2

its infinity loop, the conditions involves j, but you increase i, when is this then ever going to evaluate to false?


#3

OH MY GLOB, so basically i'm an idiot. Thank you so much


#4

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