Switch
switch (/*Some expression*/) {
case 'option1':
// Do something
break;
case 'option2':
// Do something else
break;
case 'option3':
// Do a third thing
break;
default:
// Do yet another thing
}
Logic Operators
&&: and. It evaluates to true if both expressions are true.
||: or. It evaluates to true if one or the other or both expressions are true.
!: not. It makes true expression
(完)