I’m fairly new to JavaScript so I don’t quite understand why I am getting a syntax error on ‘else’. Any advise?
let player1Time = 102
let player2Time = 107
function getFastestRaceTime()
{
if(player1Time < player2Time)
{
return player1Time
} elseif(player2Time < player1Time)
{
return player2Time
} else {
return player1Time
}
}