Can you answer that whether objects are passed by value or by reference?
Answer Posted / Rajesh Kumar Roy
In JavaScript, which is commonly used in WordPress plugins and themes, objects are not passed by value or by reference. Instead, they are passed by reference with a copy of the reference. However, when a property value of an object is changed, it affects the original object.
| Is This Answer Correct ? | 0 Yes | 0 No |
Post New Answer View All Answers