+ 1
Why the Outputs is false?
Why the Outputs is false when I code this? var a= {value:20}; var b= {value:20}; document.write(a==b);
3 Réponses
+ 7
You are comparing objects not values. You and you friend can be the same age but that does not make you the same person.
+ 1
If you want to compare the value, use a.value and b.value instead.