DEV Community

loading...

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

Collapse
arnavaggarwal profile image
arnav-aggarwal Author

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.

Forem Open with the Forem app