Comparisons5

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".

Your code

Result

All exercises · Next: Comparisons6 →