If you're learning JavaScript, understanding conditionals is very important. In this post, we’ll quickly cover:


Ternary Operator
Truthy & Falsy Values
Switch Case


Let’s keep it simple




Ternary Operator (Short If-Else)


The ternary operator is a short way to write an if...else.

Syntax




condition ? valueIfTrue :...