DEV Community

Discussion on: "Same Reference" vs. "Same Value"

Collapse
 
cdbartholomew profile image
Chris Bartholomew

As someone who is learning Javascript, this behavior seems like a truly frustrating bug waiting to happen. A referencing operator as a hint would have been nice. Thanks for explaining.

Collapse
 
somedood profile image
Basti Ortiz

Don't worry about it, my friend. You wouldn't really encounter anything frustrating from it. At least from my experience with JavaScript, I haven't had any problems with it. I think it stems from the fact that I try my best to be aware of my memory usage. Nonetheless, there is nothing to worry about. I promise that. Unless you are really trying to break your program/script, you won't break anything at all.