|
|
|
|
Here’s a basic example. |
|
|
You can have an |
|
|
Logical operators like |
|
|
The parenthesis is always required, but the curly braces are optional for one line statements. |
|
|
JavaScript also supports ternary operations |
|
|
The expression within the |
|
|
Next example: Switch.