I am totally confused about object being passed by reference. In one book I read about "primitive data types are passed by value and obj are passed by ref." another one says "in ecmascript everything is passed by value" in another one it's "objects are not passed by value" Why is't there a standard thing to consider. I tried it on dev console and results are even more confusing.
Any help or reference ?