I require help


#1

Hello, I seem to be having a problem with my code. It says that there is an unexpected token, which is a closing bracket. I have checked through all of my code, and cannot seem to find it.
My code is listed below. If you could help me, that would be great!

/*jshint multistr:true */
var text = "My name is Lucas if you haven't figured this out already.";
var myName = "Lucas";
var hits = [];
for (var i = 0; i < text.length; i++) {
if (text[i] === 'L') {
for(j = i + myName.length)
}


#2

@unhappyjim,

var text = "My name is Lucas if you haven't figured this out already."; 
var myName = "Lucas"; 
var hits = []; 
for (var i = 0; i < text.length; i++) {
    if (text[i] === 'L') { 
        for(var j = i; j < i + myName.length) {
           //your code 2nd for-loop
        }
    }
}

#3

Wouldn't the second for loop be here?

/*jshint multistr:true */
var text = "My name is Lucas if you haven't figured this out already.";
var myName = "Lucas";
var hits = [];
for (var i = 0; i < text.length; i++) {
if (text[i] === 'L') {
for(j = i + myName.length)
}