Conditional If and Else Shorthand Operator - JavaScript Tutorial Part - 26 - YouTube
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
Javascript Shorthand Coding Techniques - DEV Community
if statement - if else print at the same time in JavaScript - Stack Overflow