0
javascript false?
why is the answer to this code „false“ ? i thought it was true... 😩 var a= {value: 20); var b = {value:20); alert(a==b);
5 Antworten
+ 1
Here is the answer:
https://code.sololearn.com/W02yt732nwTC/?ref=app
+ 1
The answer is false because a and b are references to two memory address where the value of objects are stored. The addresses are different so the result is false
0
what do i have to type in order to get a true result?
0
thank you so much!!! 👏
0
Welcome