Curriculum
Course: JavaScript Basic
Login

Curriculum

JavaScript Basic

JSHome

0/216
Text lesson

Arithmetic Operations

An ordinary arithmetic operation involves two numbers, which can be literals:

Example

let x = 100 + 50;

or variables:

Example

let x = a + b;

or expressions:

Example

let x = (100 + 50) * a;

Operators and Operands

In an arithmetic operation, the two numbers involved are referred to as operands, with the specific operation to be performed between them determined by an operator.

Operand

Operator

Operand

100

+

50