how to shorten conditional statements javascript

JavaScript
var canDrive = age > 16 ? 'yes' : 'no'
Source

Also in JavaScript: