Posted By

rumremix on 08/12/10


Tagged

javascript conditional shorthand assignment


Versions (?)

javascript conditional assignment shorthand


 / Published in: JavaScript
 

  1. var canDrink = (myAge > legalAge) ? true : false;

Report this snippet  

You need to login to post a comment.