+ 2
What is == means???
I am new to this coding, not only that but also i am mechanical engineer, so not good with coding
4 Antworten
+ 4
== is an logic operator and it is requesting a boolean it should not be confused with = which is used to for example set a value to a variable. You can use == to set a condition like already described from the other comments. So it is used for testing if to values are equal(works for each datatype).
+ 3
== is equality operator .
It returns true if it's both sides operand are equal and false if not .
2==2 //true
3==4 //false
+ 1
Awesome guys the answers I am getting is quick then WhatsApp replies 😃😃😃