Tech
Forums
Jobs
Books
Events
Interviews
Live
More
Learn
Training
Career
Members
Videos
News
Blogs
Login
Sign Up
Ask Question
2
Reply
What is happening in the following javascript code:
Minhaj Hussain
Jan 18 2018 8:49 AM
145
Reply
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)
Upload Source Code
Select only zip and rar file.
Post
Reset
Cancel
Answers (
2
)
Next Recommended Forum
get value in hidden checkbox
connect html,javascript or css