Tutorials
THE WORLD'S LARGEST WEB DEVELOPER SITE

Exercise:

Use a conditional (ternary) operator for this exercise: If the variable age is a value below 18, the value of the variable voteable should be "Too young", otherwise the value of voteable should be "Old enough".

Syntax hint: (condition) ? value1:value2;