+ 4
What is the difference between == and =??
4 Réponses
+ 8
== compares two expresions, if they have the same value returns true and if they are different returns false.
= is the asigment operator. It takes the value of whatever is on the right and asigns it to the variable which is on the left.
+ 5
= assignment
== compare two variable
=.,=
+ 3
== is used to in if statements and returns a boolean expression and = is used to assign value to a variable.
+ 1
== operator will compares the expression while = will assign the values to user defined variables