Nearby lessons
12 of 40🔹 Unary Operators
📌 What are Unary Operators?
Operators that work on a single operand.
Includes type checking and property deletion.
| Attribute | Description |
|---|---|
typeof | Returns variable type |
delete | Deletes object property |
void | Evaluates expression without return |
+ | Converts to number |
- | Negates number |
Code Example
PREVIEW READY
Keep Going!JS - Ternary Operator