javascript 2 question mark operator code example
Example: question mark operator javascript
voteable = (age < 18) ? "Too young":"Old enough"
// condition ? if true : if false
voteable = (age < 18) ? "Too young":"Old enough"
// condition ? if true : if false