Unparenthesized `a ? b : c ? d : e` is not supported. Use either `(a ? b : c) ? d : e` or `a ? b : (c ? d : e)`
Understanding the Ternary Operator in Java Script Resolving the Issue with Nested Ternary Expressions In Java Script the use of the ternary operator can greatly