Missing ) after argument list


#1

I am getting an error message about a missing ) but I can't figure out where to place it. Please someone let me know, I have been staring at it for 30 minutes and i think it needs a pair of fresh eyes.

/*jshint multistr:true */
text = "Today is a great day!!\
My name is Melissa and I like sunny days! Melissa";
var myName = "Melissa";
var hits = [];
for (i = 0; i < text.length; i++) {
if (text[i] === "M") {
for(var j = i; j < (myName.length + i); j++) {
hits.push(text[j]);
}
}
};
if (hits.length === 0) {
console.log("Your name wasn't found"!);
} else {
console.log(hits);
};

Thanks!


#2

wow, this line:

console.log("Your name wasn't found"!);

the exclamation mark (!) is outside the string, causing the error message


#3

thank you! Haha it was driving me crazy


#4