how to use question mark operator in javascript 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