Strong Root

1
2
3
4
5
6
age = Number(age);
if (isNaN(age)) {
    voteable = "Error in input";
else {
    voteable = (age < 18) ? "Too young" : "Old enough";
}
cs






출처 : http://www.w3schools.com/js/js_comparisons.asp