JavaScript Associate — Medium
Key points
- Assigning an object to another variable creates a reference, not a new object
- Modifying the reference object will reflect changes in the original object
- JavaScript objects are passed by reference, not by value
Ready to go further?
Related questions
