-
IF
- just if
if {} if () {} else {}if () {} else if () {} else {}
- just if
-
Switch
- checks each case and executes
- break is compulsary
- else every case runs after the sucess case
-
k = 5;
-
Ternary
- Evalute a condition and do some thing
- Condition ? True Action : False Action
-
k = 5 ;