Log it!


#1

Console says "SyntaxError: Unexpeced end of input"
Code below:

/*jshint multistr:true */
var text = "blah blah blah balh blah blah blahj Thanasis blahblahblah blah blahb lbha blah blajhThanasis blajh blah blah";
var myName = "Thanasis";
var hits = [];
for (var i = 0; i < text.length; i++) {
console.log
if (text[i] === "T") {
for (var j = i; j < (myName.length + i); j++) {
hits.push(text[j]);
}
}
}
if (hits.length === 0) {
cosnsole.log("Your name wasn't found!");
} else {
console.log(hits);
{


#2

Your final closing brace { is the wrong way round:

{

should be

}

#3

Thanks very much man


#4

No problem!