0
Error in the comparison
The comparison might be like var1==true and var2==false using double == or ===
3 Respostas
+ 1
Specify your language and clarify your question.
THANK YOU!
0
Mateo Urrego in which Lang you've make this program first clarify that
0
In Javascript:
For example If you have 2 == "2": Javascript will convert the string "2"
to the integer 2 and then compare the two values. The result will be "True" in that case!
While 2 === "2" returns "False" from the beginning. This is strict! No conversion takes place before the comparison!
I hope it helps!