var obj1 = {
Name: "ASLAM",
getName: function () {
return this.Name;
} }
var obj2 =
{
address : "PAKISTAN",
getAddress:function() {
return this.address;
} }
obj2 = obj1;
obj2.getName();
obj2.getAddress();
(What will be the output and what are the reasons behind it)


Minhaj Hussain83 reputationPosted Jan 18, 2018, 4:10 AM EST
Minhaj Hussain83 reputationPosted Jan 18, 2018, 7:14 AM EST