var name = prompt('What is your age?'); console.log(name); var age; var voteable = (age < 18) ? "Too young":"Old enough";
var age = prompt('What is your age?'); var voteable = (age < 18) ? "Too young" : "Old enough"; alert(voteable);
prompt
var
This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)