+ 1
Why "=" "!=" "=="
somebody explain please!!!
5 Answers
+ 2
And != checks if the values are different.
+ 1
= is for assignment â "set a variable to this value"
== is to test â "is the value of this variable this?"
+ 1
They could be arbitrarily assigned to any symbol(s). These happened to be most consistent.
+ 1
= to assign value, like you want to assign value to any variable. as var x=5.
== is to check if both values are equal , 5==5 will return true.
!= is not equal. 5!=6 will return true.
0
Why? to explain why you would need a university course of compiler design, automata and formal languages. just take them as they are