var age = prompt("Please give me your age.");
alert("You are under 21");
else if (age>age2)
alert("I believe you are too old, sorry");
alert("Welcome to the Club!");
window.location = 'http://www.google.com'
This works but I am not sure if this is the best way to do it and also, is there a way to only accept numbers and not letters?