In JavaScript, “Arithmetic Operators” are the basic operators that perform arithmetic operations on attributes.

``````var x = 10;
var y = 9;
var z = x + y;
console.log(z);

// Result → 19
``````

Subtraction operator ( – )

→ It subtracts numbers.

``````var x = 10;
var y = 9;
var z = x - y;
console.log(z);

// Result → 1
``````

Multiplication operator ( * )

→ It multiplies numbers.

``````var x = 10;
var y = 9;
var z = x * y;
console.log(z);

// Result → 90
``````

Division operator ( / )

→ It divides numbers.

``````var x = 90;
var y = 9;
var z = x / y;
console.log(z);

// Result → 10
``````

Modulus operator ( % )

→ It returns the division remainder.

``````var x = 90;
var y = 9;
var z = x % y;
console.log(z);

// Result → 0
``````

Increment operator ( ++ )

→ It increments numbers.

``````var x = 10;
x++;
console.log(x);

// Result → 11
``````

Decrement operator ( — )

→ It decrements numbers.

``````var x = 10;
x--;
console.log(x);

// Result → 9
``````

Exponentiation operator ( ** )

→ It is used to add an exponent to another number.

``````var x = 10 ** 2;
console.log(x);

// Result → 100
``````