var x=prompt("enter age here", "10"); if(x>60 && x<=120) { document.write("older"); } //...rest of the code as it is.
if (x>120) { document.write("too old"); } else if(x>60) { document.write("older"); }
var
This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)