0

Pls what does this sign means,. ==. (double equal signs)

18th Oct 2019, 7:39 PM
KBlack 💪
KBlack 💪 - avatar
3 Réponses
0
It's use to compare values. e.g var a = 4; let b = 4; if (a ==b){ alert ("a is the same as b")}
15th Oct 2021, 5:07 PM
Dam Legxs
Dam Legxs - avatar
+ 1
It means what = means in math. But = is already in use in programming languages to assign values, like... int x=42; So for checking if something is equal we need something else.
18th Oct 2019, 9:48 PM
HonFu
HonFu - avatar
0
They're used to compare two things. If the two elements are equal (for example 2 == 2) it says "True". If not (for example 2 == 1) it says False.
18th Oct 2019, 7:42 PM
Yiohiouelotzh McBrain
Yiohiouelotzh McBrain - avatar