29.1k views
5 votes
CodeHS debugging lesson:

I keep getting the syntax error 'Expected: ';'' but everything that needs a semicolon has one. What am I missing?
function start(){
for(var i = 0; i < 13; i++){
if(frontIsBlocked()){
jumpHurdle();
}else (frontIsClear()){
move();
}
}
}
function jumpHurdle(){
turnLeft();
move();
turnRight();
move();
turnRight();
move();
turnLeft();
}

User Suzanna
by
5.1k points

2 Answers

1 vote

Answer:

turn right

Step-by-step explanation:

User MattyZ
by
4.8k points
3 votes

Answer:IDK

Explanation: :)

User Ion Scerbatiuc
by
5.0k points