Short Hand Techniques for Javascript Developers1. The Ternary Operator:This is a great code saver when you want to write an if..else statement in just one line. - Study24x7
Useful JavaScript shorthand collection | by Berkana | Bits and Pixels | Medium
How the Question Mark (?) Operator Works in JavaScript