July 2023
JavaScript Basics : Ternary Operators
The ternary operator is used to check conditions in your code instead of using an if…else statement. It is also called a conditional operator and makes code considerably shorter and easier to read (most of the time)...