JavaScript Arithmetic Operators
| Operator | Description |
|---|---|
| + | Addition |
| - | Subtraction |
| * | Multiplication |
| / | Division |
| % | Modulus |
| ++ | Increment |
| -- | Decrement |
JavaScript Assignment Operators
| Operator | Example | ||
|---|---|---|---|
| = | x = y | ||
| += | x += y | ||
| -= | x -= y | ||
| *= | x *= y | ||
| /= | x /= y | ||
| %= | x %= y |
JavaScript Logical Operators
| Operator | Description |
|---|---|
| = = | equal to |
| = = = | equal value and equal type |
| != | not equal |
| !== | not equal value or not equal type |
| > | greater than |
| < | less than |
| >= | greater than or equal to |
| <= | less than or equal to |
| ? | ternary operator |
No comments:
Post a Comment