How can we assign an object in Java Script??
For Example:-
-----------
If i create an object "obj1"
var obj1 = Object();
obj1.name = "hari";
and if i want to assign it to two objects "obj2" and "obj3"
with different names...
obj1.name = "gopi"
obj2 = new Object(obj1);
obj1.name = "raghu"
obj3 = new Object(obj1)
Now ob2.name become to "raghu" from "gopi". WHY?
how to solve the above problem?
Answer Posted / rajesh
I maynot give the exact reason..but root cause may be
because of...
As you know the javascript is just parsed from top to
bottom. It won;t execute as long as you run the app.
While parsing it just holds the reference and checks for
syntactical errors.
| Is This Answer Correct ? | 0 Yes | 1 No |
Post New Answer View All Answers
What are the differences between ajax and javascript? : asp.net ajax
What browsers support ajax?
How do we manage concurrent request?
What is an ajax request and what is a simple example of where a ajax request would be used?
What is the limitation of AJAX ?
Is ajax still in use?
Is ajax an api?
How to create an ajax website using visual studio?
Describe the situations in which ajax should not be used? : asp.net ajax
What are the new controls introduced in asp.net ajax control toolkit? : asp.net ajax
Difference between server-side ajax framework and client-side ajax framework?
What is the importance of client-side libraries? : asp.net ajax
How can you debug asp.net ajax applications?
Explain fetch api in javascript?
What technologies are being used in ajax? : asp.net ajax