"Unexpected token )"?


#1

Please tell me what I did wrong here.

/*jshint multistr:true */
var text = "Hey, what is your name? My name is Miriam, but some people call me Mir. I love food and music and all of that amazing stuff.";
var myName = "Miriam";
var hits = [];
for (i = 0; i < text.length; i++) {
for (text[i] === "M")
{
}
}


#2

@futuresta,

change your

for (text[i] === "M") 
 {
 }

into

if (text[i] === "M") {
 }