Lesson 2


#1

I am able to click the confirm box but then a box appears that asks for my age, I tried it both ways with <13 and >13 but when i put my actual age in and hit ok, it says did you assign a variable for age? . helpppppp

confirm("I am ready to play!");
var Age=prompt("What's your age");

if(Age > 13)
{
console.log("Seek supervision");
} else
{
console.log("Don't worry");
}


#2

That > should be a <.

It seems that your browser needs a refresh, simply because it works on mine (once I made the fix).


#3

I did this:

confirm("I understand confirm!");
var age = prompt("What's your age")
if (age<13)
{
console.log ("You are allowed to play, but I take no responsibility");
}
else{
console.log ("Play on. You can do it.");
}

You did :

confirm("I am ready to play!");
var Age=prompt("What's your age");

if(Age > 13)
{
console.log("Seek supervision");
} else
{
console.log("Don't worry");
}
[/quote]

You don't need to capitalize Age.

I think that's what you did.
I'm sorry if I didn't help you.
Just in case this is Lesson 2 : Old enough to play?