Penugasan JavaScript dengan referensi atau nilai

Primitives are by value
Compound by reference
Matthew Edelen