| 
  
   Menu 
  × 
      
    × 
      Correct! 
    Exercise:Choose the correct conditional (ternary) operator to alert "Too young" if age is less than 18, otherwise alert "Old enough". 
var age = n;
var voteable = (age @(1) 18) @(1) "Too young" @(1) "Old enough";
alert(voteable);
 
var age = n;
var voteable = (age < 18) ? "Too young" : "Old enough";
alert(voteable);
 
    Not CorrectClick here to try again. Correct!Next ❯ | 
This will reset the score of ALL 67 exercises.
Are you sure you want to continue?