Help me with my simple java game


#1

Hi can someone help me with this simple JavaScript game i'm making here is the code:
confirm('Are you reay to play?')
var AreYouSure = prompt("Are you sure")
if("yes" === AreYouSure)
{
alert ("Play on!")
}
else
{
alert ("You do not want to play!?!?!");
}
var Name = function (name)
{
confirm("Your name is" + " " + name);
}
userName = prompt("What is your name?")
Name(userName)
var userAge = prompt("How old are you?")
var Age = function (name)
{
confirm("You are "+userAge+ " years old");
}
Age(userAge)
var userGender = prompt("Male or Female")
var Gender = function(name)
{
confirm("You are "+userGender+"")
}
if (Male === userGender);
{
var userGender = "Boy"
}
else if (Female === userGender)
{
userGender = "Girl"
}
else
{
userGender ="N/A"
}

var Begin = function
{
confirm("Once apon a time there was a young "+userGender+" named "+userName+"...")
}

If you find anything wrong with my code tell me


#2

JavaScript is not Java!

If there's something specific that you want an extra set of eyeballs directed at please do tell, currently the question is a bit too open-ended for me (specific questions are easier to give meaningful answers to)