What = means
Both sides have the same value. It isn't just “the answer comes next”: 3 + 1 = 2 + 2 is a correct use.
In JavaScript, a single = assigns a value (x = 5 stores 5 in x), == compares after converting types, and === compares without converting. Other programming languages set their own rules.
Neutral mathematical notation; in code, the number of signs can change the operation.
In JavaScript, one = assigns; == and === compare.
Don't confuse it with
4Worth knowing
- Robert Recorde, a Welsh mathematician, introduced the sign in an algebra textbook printed in 1557, choosing two parallel lines because he considered nothing more equal.
Questions people ask
1Why does = show as a box on some devices?
Because that device's fonts have no glyph for it. The character is still correct and still copies correctly — the box is a missing glyph, not a broken character.
How to type =
=\003DCodes and encoding1 code points
A visible symbol can contain several code points. JS .length counts UTF-16 units; UTF-8 counts bytes.

