The Ternary Operator (? :)
📰 Medium · JavaScript
This is a completely different use of ? from optional chaining. Here ? and : work together as a shorthand if/else: Continue reading on Medium »
This is a completely different use of ? from optional chaining. Here ? and : work together as a shorthand if/else: Continue reading on Medium »