javascript expression ternaire code example Example: ternaire javascript (isMember ? '$2.00' : '$10.00')