One topic or concept that causes confusion when developers start with
JavaScript is the idea of passing objects by reference;
for example, setting two variables equal to the same object actually creates a reference to that same object. Sending an object to a function and modify that argument within the function actually modifies the original object.
Visit this link
for example, setting two variables equal to the same object actually creates a reference to that same object. Sending an object to a function and modify that argument within the function actually modifies the original object.
Visit this link
0 comments:
Post a Comment