Shany  Jenkins

Shany Jenkins

1626496800

JavaScript Operators — What are Unary Operators?

This post begins a series on JavaScript Operators and follows from a previous blog post on types and values in JavaScript. A core part of building a program in JavaScript is performing operations on values, which are more interesting when operations are performed upon them.

Being able to perform operations such as arithmetic, combining, comparing, performing logical checks, and other operations on values transform them into dynamic values. Different types have available different operations. And some operations behave differently depending on the types involved. Operators can be broken down into a few groups.

A unary operation is an operation that involves only one operand. This means that there is an operator followed by just one value — or operand — that then produces a result from the operation.

#javascript

JavaScript Operators — What are Unary Operators?