Object comparison in jQuery

Posted by Anand9796 under jQuery on 10/1/2019 | Points: 10 | Views : 737 | Status : [Member] | Replies : 1
obj1 and obj2 both are same type of objects eventhough alert gives false. Why is it so ? Can someone help me with this.

$(document).ready(function(){
var obj1 = { }
var obj2 = { }
if(obj1 === obj2)
{
alert('true');
}
else
{
alert('False');
}
});


Software Developer at iFour Technolab Pvt Ltd
http://ifourtechnolab.com



Responses

Posted by: Alisonhenry on: 11/21/2019 [Member] Starter | Points: 25

Up
0
Down
If you are seeking hints regarding shopping for a ash home appliance to clear your wood ash, then you may discover this ash home appliance guide wont to offer you with the information you need.
https://hvac-tools.cabanova.com/


Anand9796, if this helps please login to Mark As Answer. | Alert Moderator

Login to post response