Lesson 2 old enough to play?


#1


i don't understand what i am doing wrong

you didn't check the users age


if(yes)
{ 
    console.log("You and Bieber start racing. It's neck and neck! you win by a shoelace!")
else
{
console.log("Oh no! Bieber shakes his head and sings 'I set a pace, so I can race without pacing.'")
}


#2

Hi you should read the instruction because where you put yes you should put the if condtion


#3

what would the condition be then?


#4

var age = prompt("What's your age");
if (condition) {
console.log("You are allowed to play, but we take no responsibility for that");
}
else {
console.log("you are too young to play this game! Go to school");
}

condition: you should evaluate is your "age" more then 18, for example.


#5

what the instruction are asking you? can you post it?


#6

https://www.codecademy.com/en/courses/javascript-beginner-en-x9DnD/0/2?curriculum_id=506324b3a7dffd00020bf661#


#7

HI that is the link (with it I can't see his code) to the lesson but I want to see his update code..