+, -, ~, ~, delete, void, typeof
JS ⟩ statement ⟩ expression ⟩ operator ⟩ unary
(operator) an operation with only 1 operand. 👉 table of operators
delete - delete object property.
void - discards an expression's return value.
typeof - determines the type of a value.
await -
+arrow-up-right - unary plus operator converts its operand to Number type.
+
-arrow-up-right - unary negation operator converts its operand to Number type and then negates it.
-
~arrow-up-right - bitwise NOT operator.
~
!arrow-up-right - logical NOT operator.
!
binary operator
ternary operator
unary operatorsarrow-up-right
Last updated 3 years ago