Your Second "For" Loop -Holy Moly Guacamole!


This one has got me good! I feel like I’ve lost sense of what I’m doing here and my code is way off. Can anyone help steer me back?

SyntaxError: Unexpected end of input


var text = “Lisa, Lisa, Lisa”;

var myName = “Lisa”;

var hits = ;

for ( var i = 0; i < text.length; i++) {
if (text[i] === “L”) {
for ( var j = i;j < i+ text.length; j+=1) {
if (text[i] === “L”) {

<do not remove the three backticks above>



Don’t test if ì is equal to L again! Remove this line.

You must put the characters that correspond to your name in the hits array by using push method like this: