DEV Community

Avinashd
Avinashd

Posted on

Js in bits - 10.2(Conditional Branching)

Learning js should be fun. It is fun if it's easy.
I tried my best in writing this, to understand it the easy way.

? ternary operator
The if/elseif/else conditions can be written with ternary operator

Image description

Multiple conditions with ?

Image description

For Better eye scan

Image description

Leave y'r thoughts....

Top comments (0)