Declare Variables


Hello all,
I having been working to learn JavaScript and was having some trouble accomplishing this task appreciate feedback. Not sure what is wrong, error message states that "Syntax Error: missing before statement" I do not comprehend.

var text = "Let the man work at his craft \ YM Spend the necessary time getting work accomplished \ YM, Never accept defeat \ YM";

var myName = "YM";

// make this variable an empty array
var hits [];


var hits []; needs an equals sign for its declaration:

var hits = [];


plateofshrimp thanks for the assistance