I have two objects: A and B:
var A={valor:0}
var B={valor:0}
A=B
A.valor=5
console.log(B.valor) // 5
I would like to know how to pass by value, since JavaScript passes by reference to objects, in this example I would like b.valor
to be equal to 0;