DEV Community

Discussion on: 10 JavaScript concepts you need to know for interviews

Collapse
 
arnavaggarwal profile image
arnav-aggarwal

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.