# Arithmetic Operators

### Arithmetic Operators

An arithmetic operator takes numerical values (either literals or variables) as their operands and returns a single numerical value.

```javascript
let x = 10;
let y = 5;

console.log(x+y);
console.log(x-y);
console.log(x*y);
console.log(x/y);

console.log(x%y);  // remainder, 0
console.log(7%3);  // remainder, 1

console.log(x++);  // post-increment, 10
console.log(++x);  // pre-incremenet, 11

console.log(2**3); // exponentiation, 2 ** 3 = 8

console.log(-x);   // -10

// attempts to convert operand to a number
console.log(+"2"); // 2
console.log(+3);   // 3
```

###
