var age = prompt("Please give me your age.");
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?
0 · ·