ternary operator in js for match and fetch value code example Example: js ternary condition ? ifTrue : ifFalse