I'm trying something with JavaScript. I keep getting this error for the following code block -
"There is a missing ; before statement."
And the statement referred to is the for loop after the function TeamConst. Any idea why?!
function Semis1TieBreakCheck(){
function TeamConst(TeamName, rd1, rd2, semiscomb){
this.TeamName = TeamName;
this.rd1 = rd1;
this.rd2 = rd2;
this.semiscomb = semiscomb;
};
for(var i = 0; i <= numofTeams-0; i++){
var team[i] = new TeamConst(values[i+2][5],values[i+2][6],values[i+2][7],values[i+2][6] + values[i+2][7]);
};
};
for {}loop.functionasfuntion(missed accharacter afterfun), and then this error occured.