javascript false? | SoloLearn: Learn to code for FREE!

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);

2/19/2020 6:14:35 PM

Mylisa_beth

5 Answers

New Answer

+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