Characters
| Characters that can act as: | Expression operator (ie an operator) | The beginning of a statement |
|---|---|---|
| ( | Javascript - Grouping Operator () | |
| [ | Javascript - Array | |
| + | Concat or addition | |
| - | Minus | |
| / | Division | Regular expression |
Example: / as a regular expression that begins a statement.
/Error/i.test("Error in the log") && console.log("exit!");
List
- !: negation (!0 = true, !1 = false)
- {}: an object initializer or a block of code
- semi-colon: ; : end of a statement