Exemplos de operador condicional JS


        
            
        
     var age = 19;
var canDrive = age > 16 ? 'yes' : 'no';
Expensive Eagle