<!-- mobian-agent-page publisher="dailydev" canonical="https://daily.dev/posts/basic-operators-maths-4qkotm5eq" -->

---
title: Basic operators, maths | daily.dev
description: An operator is unary if it has a single operand. The multiplication is said to have a higher precedence than the addition. The same minus exists in binary form...
canonical: https://daily.dev/posts/basic-operators-maths-4qkotm5eq
twitter:card: summary_large_image
twitter:site: @dailydotdev
og:type: website
og:site_name: daily.dev
og:title: Basic operators, maths | daily.dev
og:description: An operator is unary if it has a single operand. The multiplication is said to have a higher precedence than the addition. The same minus exists in binary form...
og:url: https://daily.dev/posts/basic-operators-maths-4qkotm5eq
og:image: https://api.daily.dev/og/posts/4QKoTM5eQ.png
og:image:alt: Basic operators, maths
og:image:width: 1200
og:image:height: 630
og:locale: en
---

> ## Documentation Index
> Fetch the complete documentation index at: https://daily.dev/llms.txt
> Use this file to discover all available pages before exploring further.

# Basic operators, maths

**[Community Picks](https://daily.dev/sources/community)** · [@iliakan](https://daily.dev/iliakan) · 9 min read · 14 upvotes · 1 comments

## Summary

An operator is unary if it has a single operand. The multiplication is said to have a higher precedence than the addition. The same minus exists in binary form as well: the negation operator, a unary operator that reverses the sign.

## Full article

daily.dev links to this article rather than hosting it. Read it at the original source: <https://javascript.info/operators>

## Community discussion

Top comments from developers on daily.dev.

**@davidmphande** · 0 upvotes

> An operand – is what operators are applied to. For instance, in the multiplication of 5 * 2 there are two operands: the left operand is 5 and the right operand is 2. Sometimes, people call these “arguments” instead of “operands”.
>
> An operator is unary if it has a single operand. For example, the unary negation - reverses the sign of a number:

---

Tags: [#javascript](https://daily.dev/tags/javascript)

[View this post on daily.dev](https://daily.dev/posts/basic-operators-maths-4qkotm5eq)

```json
{"@context":"https://schema.org","@graph":[{"@type":"Organization","@id":"https://daily.dev/#organization","name":"daily.dev","url":"https://daily.dev","logo":{"@type":"ImageObject","url":"https://daily.dev/apple-touch-icon.png","width":180,"height":180},"sameAs":["https://twitter.com/dailydotdev","https://github.com/dailydotdev","https://www.linkedin.com/company/daily-dev-ltd"]},{"@type":"WebSite","@id":"https://daily.dev/#website","url":"https://daily.dev","name":"daily.dev","publisher":{"@id":"https://daily.dev/#organization"},"potentialAction":{"@type":"SearchAction","target":{"@type":"EntryPoint","urlTemplate":"https://daily.dev/search?q={search_term_string}"},"query-input":"required name=search_term_string"}}]}
{"@context":"https://schema.org","@type":"TechArticle","headline":"Basic operators, maths","url":"https://daily.dev/posts/basic-operators-maths-4qkotm5eq","mainEntityOfPage":{"@type":"WebPage","@id":"https://daily.dev/posts/basic-operators-maths-4qkotm5eq"},"datePublished":"2022-10-15T04:47:05.458Z","dateModified":"2023-12-07T12:02:45.284Z","description":"An operator is unary if it has a single operand. The multiplication is said to have a higher precedence than the addition. The same minus exists in binary form...","image":"https://media.daily.dev/image/upload/f_auto,q_auto/v1/posts/1850e25dad3c6cc5b6483eac703b4834","thumbnailUrl":"https://media.daily.dev/image/upload/f_auto,q_auto/v1/posts/1850e25dad3c6cc5b6483eac703b4834","isAccessibleForFree":true,"articleSection":"Community Picks","inLanguage":"en","publisher":{"@type":"Organization","name":"daily.dev","url":"https://daily.dev","logo":{"@type":"ImageObject","url":"https://daily.dev/apple-touch-icon.png","width":180,"height":180}},"author":{"@type":"Person","name":"Ilya Kantor","url":"https://daily.dev/iliakan","image":"https://lh3.googleusercontent.com/a-/AOh14Gg-eSMEY8bkm-VdfJlZMGi0m6X0J7h0CQqCVb_9ew=s100","interactionStatistic":{"@type":"InteractionCounter","interactionType":{"@type":"EndorseAction"},"userInteractionCount":50}},"commentCount":1,"discussionUrl":"https://daily.dev/posts/basic-operators-maths-4qkotm5eq","interactionStatistic":[{"@type":"InteractionCounter","interactionType":{"@type":"LikeAction"},"userInteractionCount":14},{"@type":"InteractionCounter","interactionType":{"@type":"CommentAction"},"userInteractionCount":1}],"keywords":"javascript","timeRequired":"PT9M"}
{"@context":"https://schema.org","@type":"BreadcrumbList","itemListElement":[{"@type":"ListItem","position":1,"name":"Home","item":"https://daily.dev"},{"@type":"ListItem","position":2,"name":"Community Picks","item":"https://daily.dev/sources/community"},{"@type":"ListItem","position":3,"name":"Basic operators, maths"}]}
{"@context":"https://schema.org","@type":"WebPage","@id":"https://daily.dev/posts/basic-operators-maths-4qkotm5eq","comment":[{"@type":"Comment","text":"An operand – is what operators are applied to. For instance, in the multiplication of 5 * 2 there are two operands: the left operand is 5 and the right operand is 2. Sometimes, people call these “arguments” instead of “operands”.\nAn operator is unary if it has a single operand. For example, the unary negation - reverses the sign of a number:","datePublished":"2023-04-29T07:03:56.812Z","url":"https://daily.dev/posts/4QKoTM5eQ#c-S6jS4wGQx","author":{"@type":"Person","name":"david mphande","url":"https://daily.dev/davidmphande","image":"https://media.daily.dev/image/upload/s--jFpZSYpW--/f_auto/v1720019986/avatars/avatar_mZzePPuA7Sar1GKZ2tYzg"}}]}
```

