Computers and Technology

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();
}

answer
Answers: 3

Other questions on the subject: Computers and Technology

image
Computers and Technology, 22.06.2019 15:30, mikey3882
When creating a budget, log fixed expenses before income. after income. after savings. at the top.
Answers: 1
image
Computers and Technology, 23.06.2019 02:00, rah45
Which of the following is not a source of sustainable raw materials? a) coal mine b) flick of sheep c) cotton plantation d) line forest.
Answers: 2
image
Computers and Technology, 23.06.2019 13:00, dimondqueen511
Which one of the following voltages should never be measured directly with a vom? a. 1200 v b. 500 v c. 800 v d. 100v
Answers: 2
image
Computers and Technology, 24.06.2019 07:30, Isabellawuzhere
Aproject involves many computing systems working together on disjointed task towards a single goal what form of computing would the project be using
Answers: 3
Do you know the correct answer?
CodeHS debugging lesson:
I keep getting the syntax error 'Expected: ';'' but everything that n...

Questions in other subjects: