re: 10 JavaScript concepts you need to know for interviews VIEW POST

VIEW PARENT COMMENT VIEW FULL DISCUSSION
 

That's the point. Arrays & objects are not copied when they're assigned, either using = or passed into a function. Only the reference is copied/passed in.

code of conduct - report abuse