r/javascript • • Aug 23 '17

10 JavaScript concepts you need to know for interviews

https://dev.to/arnavaggarwal/10-javascript-concepts-you-need-to-know-for-interviews
425 Upvotes

118 comments sorted by

View all comments

Show parent comments

1

u/Carnilawl Aug 24 '17

In the third case, are you passing any information beyond a memory address?

1

u/BB611 Aug 24 '17

Nope, both cases 2 and 3 just pass a memory address.

The difference is that case 2 passes a copy, and case 3 passes the real deal.