Exercise v1.3

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;

Edit This Code:
Result:
Correct Code:
Correct Result:
Exercise - © w3schools.com