+ 1
What is the difference between = and ==
2 Answers
+ 7
In javascript you use a single = to declare a value of a variable. Double == is used to compare two values, do they equate to each other. Triple === is the same EXCEPT the two values must also be the same type of value, to equate true.
+ 4
= is the assing operator
== is the comparision operator ( just in value, not in type)