โญ•unary operator

+, -, ~, ~, delete, void, typeof

JS โŸฉ statement โŸฉ expression โŸฉ operator โŸฉ unary

  • delete - delete object property.

  • void - discards an expression's return value.

  • typeof - determines the type of a value.

  • + - unary plus operator converts its operand to Number type.

  • - - unary negation operator converts its operand to Number type and then negates it.

  • ~ - bitwise NOT operator.

  • ! - logical NOT operator.

Last updated

Was this helpful?