Nearby lessons

12 of 40

🔹 Unary Operators

📌 What are Unary Operators?

Operators that work on a single operand.

Includes type checking and property deletion.

AttributeDescription
typeofReturns variable type
deleteDeletes object property
voidEvaluates expression without return
+Converts to number
-Negates number
Example02
Code Cell
Loading Editor...
✏️ You can edit this code — click Run to refresh the preview.
Output