-4
我遇到以下問題。任何幫助,將不勝感激。我的電腦指出以下內容:SyntaxError(CODEACADEMY)
Oops, try again. There was a problem with your syntax. SyntaxError: missing) after condition.
可以找到?或者還有其他一些問題?任何信息/想法/想法都會受到讚賞。
這裏是我的代碼:
// Check if the user is ready to play!
confirm ("I am ready to play!");
var age = prompt ("What's your age");
if (age is less than 13);
{
console.log ("You can't play this game!");
}
else
{
console.log ("This game was created for you. Play on!");
}
'if(age <13)' – Nick