Miscellaneous Operators
JavaScript Operators
Some Miscellaneous JavaScript Operators are described below.
| Operator | Name / Link | Example | 
|---|---|---|
| : | Colon | age : 45 | 
| . | Member of | person.age | 
| [ ] | Member of | person["age"] | 
| ?. | Optional Chaining | x ?. y | 
| ... | Spread | ...myArray | 
| ( ) ? x : y | Ternary Conditional | (z < 18) ? x : y | 
| ( ) | Expression | ( x + y ) | 
| ( ) | Function Call | myFunction() | 
| => | Arrow Function | (a, b) => a + b | 
| new | Constructor | new Date() | 
| delete | Delete | delete person.age | 
| in | Relational in | "age" in person | 
| instanceof | Instance of | x instance of Array | 
| typeof | Type of | typeof "John" | 
| void | Void | void(0) | 
| yield | Delegate | yield.x |