I am wondering if someone can help me with this little problem. I've been struggling with this small section of code below for the last two days. When I run the code i get a syntax error and also another one that says missing operand; found else. What I am trying to do is depending on age, go to "you can play" if your over 18, and "You can't play" if your under 18. I've exhausted all resources and asked around. Everyone tells me that it is fine. But if it is then why is it not running the way it should? Any ideas? Thanks.
confirm("I am ready to play!")
age = prompt("How old are you?");
if(age > 18);
console.log("You can play!");
console.log("You can't play!");