JavaScript Operators
Operators are little symbols that do work.
They can add numbers, compare values, or join words.
Think of them as tools in a kitchen drawer.
What operators do
Operands
Kinds of operators
A first look at each family
Operators and operands
The operator is the tool.
The operands are the values the tool works on.
In 2 + 3, the plus is the operator. 2 and 3 are the operands.
Arithmetic operators
These do math.
Add, subtract, multiply, divide, and more.
Assignment operators
These put values into boxes.
The plain = is the most common.
Comparison operators
These ask yes or no questions.
Is this bigger? Are these the same?
Logical operators
These combine true and false ideas.
And, or, and not help you make choices.
Tip: Learn operators in families. Math first. Then assign. Then compare. Then combine with logic.
Test yourself
Three quick questions made just for this lesson. Earn 10 XP per correct answer.