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

VIEW FULL DISCUSSION
 

"Understand that objects, arrays, and functions are copied and passed by reference."

If something is passed by reference it is NOT copied. That's the whole point of passing by reference. May want to change the wording there.

 

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