Will not let me submit code, error page


Hi, I am having a serious problem passing this page, everytime i click submit it kind of freezes and then crashes and comes up with an error message...i have checked and this is the only site it is doing this for, and i would really like to keep going but i cant verify whether my code is right or not :pensive:



Do you have any loops in your code as it sounds like an infinite loop.
Check your code :slight_smile:
paste in your code and we can have a look.


Okay thanks, here is my code:

var text = "Hi, I am Mafe and i like it when Mafe makes \
muffins", myName = "Mafe", hits = [];
for (var i= 0; i< text.length; i++) {
    if(text[i] === myName[0]) {
        for( var j= i; j= myName.length; j++) {



have a look at this line properly

Your loop should stop when it hits the value of the first iterator (say, i) plus the length of your myName variable.