Help on 4/7


#1

// this is what i put and i am told there is a SyntaxError: missing ) after condition
confirm('we are ready to play');
var age = prompt("what's your age");
if(age is less than 13);
{
console.log('you are allowed to play but we take no responsibilty')
}
else
{
console.log('move on and enjoy the game')
}
console.log("You are at a Justin Bieber concert,and you hear this lyric 'Lace my shoes off, start racing.'")
("Suddenly, Bieber stops and says, 'who wants to race me?'");
var userAnswer = prompt("Do you want to race Bieber on stage?");


#2

Do console.log after the
("Suddenly, Bieber stops and says....");

Do a semi colon after all of the parentheses in the console.logs. Like this:

console.log("You are at a Justin Bieber concert,and you hear this lyric 'Lace my shoes off, start racing.'");

Take away the semi colon that's after your "if" statement.
if(age is less than 13){


#3

// i did and this is what i have but there still is a SyntaxError : missing ) after condition
confirm('we are ready to play');
var age = prompt("what's your age");
if(age is less than 13)
{
console.log('you are allowed to play but we take no responsibilty');
}
else
{
console.log('move on and enjoy the game');
}
console.log("You are at a Justin Bieber concert,and you hear this lyric 'Lace my shoes off, start racing.'");
console.log("Suddenly, Bieber stops and says, 'who wants to race me?'");
var userAnswer = prompt("Do you want to race Bieber on stage?");


#4

You can't just write
if(age is less than 13),
you have to write
if(age < 13)

It'll work. Trust me. :smiley:


#5

It worked for me too. :grinning: