Simple code, what am i doing wrong?


#1

Im experimenting a little with my newly learned javascript skills and thought id create a little script.

Ive been working on this one for about 2 hours now and I cant get it working! please help!

var person = prompt("how old are you?");

if(person<30)
{
confirm.("well, anything under 30 is young");
}
else
{
confirm.("anything over 30 is OLD!!");
}


#2

Remove the period after confirm