Operators are symbols used to perform operations on values and variables.
| Operator Type | Purpose | Example |
|---|---|---|
| Arithmetic Operators | Perform mathematical calculations | 10 + 5 |
| Assignment Operators | Assign values to variables | x = 10 |
| Comparison Operators | Compare two values | 5 > 3 |
| Logical Operators | Combine conditions | true && false |
| Increment/Decrement | Increase or decrease value | x++ |
| Ternary Operator | Short form of if-else | age > 18 ? "Yes" : "No" |
| Type Operator | Check data type | typeof 123 |