atribuição de javascript por referência ou valor
Primitives are by value
Compound by reference
Matthew Edelen
Primitives are by value
Compound by reference