Now studying the use of the ternary in JavaScript. I never knew about this… for instance, the expression
voteable = (age < 18) ? "Too young" : "Old enough";
means that the voteable variable gets the value of "Too young" if the age is less than 18, and gets the value of "Old enough" otherwise. It's kind of cryptic when you first look at it, but then it makes sense when you break it down. Ah, JavaScript…