Im lost


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++) {


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


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


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