7. Victory! Rearranging the code with text.indexOf(myName)


I'm trying to rewrite the code for this exercise with text.indexOf(myName)

the error message in the console if "SyntaxError: unexpected token )"
What is wrong with this code?

This is it here:
/*jshint multistr:true */

var text="String containing some text Matt Matt"
var myName="Matt"
var hits=[]

for (text){if (text.indexOf(myName)>-1){for (var j=text.indexOf(myName);jif (hits===0){console.log("Your name wasn't found!")}