https://jakerpomperada.com/qualified-to-vote-using-javascript-ternary-operator/