I have a question about arguments passing in Javascript, as I know that, for primitive data types, when passing through a function, they got copied by value.
Haw about the reference data types?
As an example, see this code:
var person3 = new Object();
setName(person3);
console.log(person3)
function setName(obj){
obj.Name = "remon"
}
For whom said that it is duplicate, it is not because I am asking the question from memory perspective and I am new in learning programming and the answers to that questions is so advanced for me.