3 Your first "for" loop, I'm receving an error I have not seen before and don't know what to do


#1

Hey, my code is this

`
/*jshint multistr:true */

var text = " Hello my name is Anne;
var myName = "Anne";
var hits = [];
for(var i = 0; i < text.length ; i++){

`


#2

Also, can someone help me to understand how to properly post code inside of backticks? As you can see I a trying unsuccessfully.


#3

HI liKe this

 ```
  Code here 
 ```

Or read this


#4

And is that all your code? Because its missing a part of the for loop.

Here you didn't closed your text string " "

var text = " Hello my name is Anne;

#5

OK, I did that and it said "SyntaxError: Unexpected end of input"


#6

Hey, I figured it out, I was missing a semicolon and a closing curly bracket. Thanks for the help!


#7

for(var i = 0; i < text.length ; i++);
{}
this works