title: Can conditional operator " ? : " be considered as an alternative to if-else statement in JavaScript?
body: <p>Someone asked me this question in a workshop and about what are some alternative to the <code>if-else</code> statement in JavaScript except from <code>switch</code>. Is the conditional operator just a shorthand for <code>if-else</code>?</p>