I need help on no.2 old enough to play


#1

so you could say
var age = prompt("whats your age")
if (age>50){
console.log("you old bag")
}
else{
("you young fresh boi")
}


#2

you need to type it as the instructions show it


#3

yh done that now it says I need to do the users name


#4

post the code and instructions


#5

var age = prompt("whats your age");
if (age>50)
{
console.log("you old bag")
}
else
{
("you young fresh boi")
}


#6

don't worry about it now


#23

I'm following what the directions are saying yet it keeps saying there's something wrong with my syntax. Please please can someone help me?:weary::confused:


#24

Sadly the values also have to be the same. (with the exception of the console.log string value)

So you'd have to add (in my case):

var age = prompt("What's your age")
if ( age < 13)
{
console.log("You're not worthy")
}
else
{
console.log("Welcome to the game!")
}


#25

Yup, I just figured it out. :grinning: Thank god for math teachers


#26

It does the same thing for me wolvesrock. I can't figure it out! Someone plz help. It says there is a problem with my syntax.


#27

nvm. Someone helped me.