Wha's wrong with my code?


#1



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

you did not check for user's age

Replace this line with your code. 
confirm("I am going to be serial Entrepreneur, just watch me");

var userAge = prompt("what's your age?");
    userAge =30  
if (userAge >= 30)
{
    console.log("You are so hot");
}
else
{
    console.log("****you");
}


#2

You are telling the computer that userAge is equal to 30, when you are supposed to prompt the user for his age.
Removing that line should do it.

The exercise you are working on right now asks:

If the player´s age is less than 13, it should log ("Play, but beware of risks").

Else, the player should be able to play ("Alrighty, you can play!")